Skip to content

Add go-wrapper support for Go 1.4 Custom Import Paths, relegating .godir support legacy and "second fiddle" #32

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

Merged
merged 1 commit into from
Nov 26, 2014

Conversation

tianon
Copy link
Member

@tianon tianon commented Nov 23, 2014

Fixes #29

I haven't run update.sh yet in the spirit of making this easier to review. 👍

@yosifkit
Copy link
Member

LGTM

@@ -46,12 +48,14 @@ if ! shift; then
exit 1
fi

dir="$(pwd -P)"
goBin="$(basename "$dir")" # likely "app"
goDir="$(go list -e -f '{{.ImportComment}}' 2>/dev/null || true)"
Copy link

Choose a reason for hiding this comment

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

suprised you didn't went for a cryptic ternary oneliner :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Hahahaha, nawww, go list is the bomb. 👍

@proppy
Copy link

proppy commented Nov 26, 2014

LGTM :)

yosifkit added a commit that referenced this pull request Nov 26, 2014
Add go-wrapper support for Go 1.4 Custom Import Paths, relegating .godir support legacy and "second fiddle"
@yosifkit yosifkit merged commit 9047db4 into docker-library:master Nov 26, 2014
@yosifkit yosifkit deleted the canonical branch November 26, 2014 18:33
tianon added a commit to infosiftr/stackbrew that referenced this pull request Nov 26, 2014
- `docker-dev`: `1.3.2`
- `golang`: support for Go 1.4 "Custom Import Paths" (docker-library/golang#32)
- `python`: smaller and `--enable-shared` (docker-library/python#23); slim variants (docker-library/python#24)
- `tomcat`: jre8 versions (docker-library/tomcat#5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

infer importPath from package comments
3 participants