-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
build: golang: does not copy all *.go
files.
#14609
Comments
See https://github.com/jtagcat/dotfiles/blob/main/scripts/template/gobuild.Dockerfile for workaround funk. |
There hasn't been any activity on this issue for a long time. Prevent issues from auto-closing with a /lifecycle stale |
unstale no sane way of copying all go files reliably without copying a file at a time, or whole root |
/remove-lifecycle stale |
/lifecycle frozen |
Still having the same issue. It's kind of annoying but you still have to do |
+1 for this, it will not work with standard layout where all entrypoints are located in cmd subpackages.
My structure:
|
still issue |
File: language/golang/build-images.md
COPY *.go ./
is misleading. It does not copy all needed files.Using subdirectories and -packages is not uncommon in golang:
Building the image in the container fails for non-obvious reasons:
pkg/
of the same module didn't get copied over.Depends on this almost 3y old issue: moby/moby#39530
GitHub Etiquette
The text was updated successfully, but these errors were encountered: