Skip to content
This repository was archived by the owner on Mar 8, 2026. It is now read-only.

Respect goversion build directives.#449

Closed
CannibalVox wants to merge 1 commit intotools:masterfrom
CannibalVox:master
Closed

Respect goversion build directives.#449
CannibalVox wants to merge 1 commit intotools:masterfrom
CannibalVox:master

Conversation

@CannibalVox
Copy link
Copy Markdown

Yesterday afternoon, context rolled out a pre-1.7 update that uses build directives to control whether the 1.6 or 1.7 files are compiled. These are in the format +build go1.7 and +build !go1.7. Godep does not currently respect these build directives and chokes trying to vendor context. This should repair this behavior, allowing us to use context again.

Yesterday afternoon, context rolled out a pre-1.7 update that uses build directives to control whether the 1.6 or 1.7 files are compiled.  These are in the format +build go1.7 and +build !go1.7.  Godep does not currently respect these build directives and chokes trying to vendor context.  This should repair this behavior, allowing us to use context again.
@CannibalVox
Copy link
Copy Markdown
Author

Related to #448

Comment thread list.go
if p.Goroot {
return nil
}
version, err := goVersion()
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should use the recorded go version from the Godeps.json file, not whichever go version is currently running.

@freeformz freeformz mentioned this pull request Apr 6, 2016
@freeformz
Copy link
Copy Markdown

Closing in favor of #451 for now.

Thanks for taking the time to take a stab at this though.

@freeformz freeformz closed this Apr 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants