Merge lp://staging/~natefinch/juju-core/019-osx-fix into lp://staging/juju-core/1.16

Proposed by Curtis Hovey
Status: Merged
Approved by: Curtis Hovey
Approved revision: no longer in the source branch.
Merged at revision: 1966
Proposed branch: lp://staging/~natefinch/juju-core/019-osx-fix
Merge into: lp://staging/juju-core/1.16
Diff against target: 9 lines (+1/-0)
1 file modified
juju/osenv/vars_nix.go (+1/-0)
To merge this branch: bzr merge lp://staging/~natefinch/juju-core/019-osx-fix
Reviewer Review Type Date Requested Status
Curtis Hovey (community) code Approve
Review via email: mp+190194@code.staging.launchpad.net

Commit message

Fix OSX build

we had no definition of the Home function under juju/osenv for OSX, because all we had was a _linux file and a _windows file. What we really needed was one implementation for Windows and one implementation for everything else. Now that's what we have. For the "everything else" we use the in-file build tag to specify that we don't build this file for Windows.

Description of the change

Fix OSX build

we had no definition of the Home function under juju/osenv for OSX, because all we had was a _linux file and a _windows file. What we really needed was one implementation for Windows and one implementation for everything else. Now that's what we have. For the "everything else" we use the in-file build tag to specify that we don't build this file for Windows.

To post a comment you must log in.
Revision history for this message
Curtis Hovey (sinzui) wrote :
review: Approve (code)
Revision history for this message
Dave Cheney (dave-cheney) wrote :

LGTM.

On Thu, Oct 10, 2013 at 4:11 AM, Curtis Hovey <email address hidden> wrote:
> Curtis Hovey has proposed merging lp:~natefinch/juju-core/019-osx-fix into lp:juju-core/1.16.
>
> Commit message:
> Fix OSX build
>
> we had no definition of the Home function under juju/osenv for OSX, because all we had was a _linux file and a _windows file. What we really needed was one implementation for Windows and one implementation for everything else. Now that's what we have. For the "everything else" we use the in-file build tag to specify that we don't build this file for Windows.
>
> Requested reviews:
> juju hackers (juju)
> Related bugs:
> Bug #1236431 in juju-core: "Undefined HOME when compiling on OS X/Homebrew"
> https://bugs.launchpad.net/juju-core/+bug/1236431
>
> For more details, see:
> https://code.launchpad.net/~natefinch/juju-core/019-osx-fix/+merge/190194
>
> Fix OSX build
>
> we had no definition of the Home function under juju/osenv for OSX, because all we had was a _linux file and a _windows file. What we really needed was one implementation for Windows and one implementation for everything else. Now that's what we have. For the "everything else" we use the in-file build tag to specify that we don't build this file for Windows.
> --
> https://code.launchpad.net/~natefinch/juju-core/019-osx-fix/+merge/190194
> Your team juju hackers is requested to review the proposed merge of lp:~natefinch/juju-core/019-osx-fix into lp:juju-core/1.16.
>
> === renamed file 'juju/osenv/vars_linux.go' => 'juju/osenv/vars_nix.go'
> --- juju/osenv/vars_linux.go 2013-08-28 20:37:53 +0000
> +++ juju/osenv/vars_nix.go 2013-10-09 17:10:56 +0000
> @@ -1,5 +1,6 @@
> // Copyright 2013 Canonical Ltd.
> // Licensed under the AGPLv3, see LICENCE file for details.
> +// +build !windows
>
> package osenv
>
>
>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: