What are the (non-developers) use cases for --upload-tools

Tim Penhey tim.penhey at canonical.com
Mon Mar 25 20:56:20 UTC 2013


On 22/03/13 17:30, David Cheney wrote:
> Tags let you add/remove files from the set of files to be compiled into
> a package. This is used to do conditional compilation in packages that
> have an os specific component.
> 
> I imagine if we wanted to make --upload-tools visible only in the debug
> build, we would use this facility.

I guess I was asking how the actual code changes.

If we had some tag defined on the command line, like the release one
below, how would the go code change?

i.e. in C++, you use #ifdef blocks.

tim

> On 22/03/13 12:23, Tim Penhey wrote:
>> On 22/03/13 14:03, David Cheney wrote:
>>>> go get -d launchpad.net/juju-core/...
>>>> go install -tag release launchpad.net/juju-core/...
>>>
>>> sorry, even I can't get this right
>>>
>>> go install -tags release launchpad.net/juju-core/...
>>
>> So, what is the impact in the go code?
>>
>> How would you change behaviour based on a tag?
>>
>> Tim
>>
>>
> 




More information about the Juju-dev mailing list