Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix os version #186

Merged
merged 3 commits into from Jun 27, 2014
Merged

Fix os version #186

merged 3 commits into from Jun 27, 2014

Conversation

davecheney
Copy link
Contributor

Fix Lp 1334493

Remove all the double underpants // +build tags, the os is inferred from the name of the file.

Remove osversion_unknown.go, Juju cannot operate without knowing the series of the machine, so cause a compilation failure, rather than produce tools that explode on use.

lucky(/src/github.com/juju/juju/version) % GOOS=windows go list -f '{{.GoFiles}}'
[osversion.go osversion_windows.go supportedseries.go version.go]
lucky(
/src/github.com/juju/juju/version) % GOOS=linux go list -f '{{.GoFiles}}'
[osversion.go osversion_linux.go supportedseries.go version.go]
lucky(~/src/github.com/juju/juju/version) % GOOS=darwin go list -f '{{.GoFiles}}'
[osversion.go osversion_darwin.go supportedseries.go version.go]

@wallyworld
Copy link
Member

LGTM I think

@davecheney
Copy link
Contributor Author

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Jun 27, 2014

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

jujubot added a commit that referenced this pull request Jun 27, 2014
Fix os version

Fix Lp 1334493

Remove all the double underpants // +build tags, the os is inferred from the name of the file.

Remove osversion_unknown.go, Juju cannot operate without knowing the series of the machine, so cause a compilation failure, rather than produce tools that explode on use.

lucky(~/src/github.com/juju/juju/version) % GOOS=windows go list -f '{{.GoFiles}}'                                                   
[osversion.go osversion_windows.go supportedseries.go version.go]
lucky(~/src/github.com/juju/juju/version) % GOOS=linux go list -f '{{.GoFiles}}'                                                     
[osversion.go osversion_linux.go supportedseries.go version.go]
lucky(~/src/github.com/juju/juju/version) % GOOS=darwin go list -f '{{.GoFiles}}'                                                    
[osversion.go osversion_darwin.go supportedseries.go version.go]
@jujubot jujubot merged commit ddd1800 into juju:master Jun 27, 2014
@davecheney davecheney deleted the fix-os-version branch April 13, 2016 23:57
laszlokajtar pushed a commit to laszlokajtar/juju that referenced this pull request Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants