-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
make generate
fails under podman due to unset $HOME
, and is subtly broken under docker
#9089
Milestone
Comments
intelfx
added a commit
to intelfx/k3s
that referenced
this issue
Dec 22, 2023
$HOME refers to $DAPPER_SOURCE, which is set in the same expression and is thus not visible at the time of substitution. This problem is not immediately visible with Docker, Inc.'s docker merely because it resets an unset `$HOME` to `/root` (but still breaking the Go cache). Under podman, this problem is immediately visible because an unset `$HOME` remains unset and subsequently breaks the `go generate` invocation. Fixes k3s-io#9089.
intelfx
added a commit
to intelfx/k3s
that referenced
this issue
Dec 22, 2023
`$HOME` refers to `$DAPPER_SOURCE`, which is set in the same expression and is thus not visible at the time of substitution. This problem is not immediately visible with Docker, Inc.'s docker merely because it resets an unset `$HOME` to `/root` (but still breaking the Go cache). Under podman, this problem is immediately visible because an unset `$HOME` remains unset and subsequently breaks the `go generate` invocation. Fixes k3s-io#9089. Signed-off-by: Ivan Shapovalov <[email protected]>
This was referenced Jan 3, 2024
github-project-automation
bot
moved this from Peer Review
to Done Issue
in K3s Development
Jan 3, 2024
Not sure this needs any other testing, since it's just used at build time. |
brandond
pushed a commit
to brandond/k3s
that referenced
this issue
Jan 10, 2024
`$HOME` refers to `$DAPPER_SOURCE`, which is set in the same expression and is thus not visible at the time of substitution. This problem is not immediately visible with Docker, Inc.'s docker merely because it resets an unset `$HOME` to `/root` (but still breaking the Go cache). Under podman, this problem is immediately visible because an unset `$HOME` remains unset and subsequently breaks the `go generate` invocation. Fixes k3s-io#9089. Signed-off-by: Ivan Shapovalov <[email protected]> (cherry picked from commit a7fe1aa) Signed-off-by: Brad Davidson <[email protected]>
brandond
pushed a commit
to brandond/k3s
that referenced
this issue
Jan 10, 2024
`$HOME` refers to `$DAPPER_SOURCE`, which is set in the same expression and is thus not visible at the time of substitution. This problem is not immediately visible with Docker, Inc.'s docker merely because it resets an unset `$HOME` to `/root` (but still breaking the Go cache). Under podman, this problem is immediately visible because an unset `$HOME` remains unset and subsequently breaks the `go generate` invocation. Fixes k3s-io#9089. Signed-off-by: Ivan Shapovalov <[email protected]> (cherry picked from commit a7fe1aa) Signed-off-by: Brad Davidson <[email protected]>
brandond
pushed a commit
to brandond/k3s
that referenced
this issue
Jan 10, 2024
`$HOME` refers to `$DAPPER_SOURCE`, which is set in the same expression and is thus not visible at the time of substitution. This problem is not immediately visible with Docker, Inc.'s docker merely because it resets an unset `$HOME` to `/root` (but still breaking the Go cache). Under podman, this problem is immediately visible because an unset `$HOME` remains unset and subsequently breaks the `go generate` invocation. Fixes k3s-io#9089. Signed-off-by: Ivan Shapovalov <[email protected]> (cherry picked from commit a7fe1aa) Signed-off-by: Brad Davidson <[email protected]>
brandond
pushed a commit
to brandond/k3s
that referenced
this issue
Jan 10, 2024
`$HOME` refers to `$DAPPER_SOURCE`, which is set in the same expression and is thus not visible at the time of substitution. This problem is not immediately visible with Docker, Inc.'s docker merely because it resets an unset `$HOME` to `/root` (but still breaking the Go cache). Under podman, this problem is immediately visible because an unset `$HOME` remains unset and subsequently breaks the `go generate` invocation. Fixes k3s-io#9089. Signed-off-by: Ivan Shapovalov <[email protected]> (cherry picked from commit a7fe1aa) Signed-off-by: Brad Davidson <[email protected]>
brandond
pushed a commit
to brandond/k3s
that referenced
this issue
Jan 10, 2024
`$HOME` refers to `$DAPPER_SOURCE`, which is set in the same expression and is thus not visible at the time of substitution. This problem is not immediately visible with Docker, Inc.'s docker merely because it resets an unset `$HOME` to `/root` (but still breaking the Go cache). Under podman, this problem is immediately visible because an unset `$HOME` remains unset and subsequently breaks the `go generate` invocation. Fixes k3s-io#9089. Signed-off-by: Ivan Shapovalov <[email protected]> (cherry picked from commit a7fe1aa) Signed-off-by: Brad Davidson <[email protected]>
brandond
pushed a commit
that referenced
this issue
Jan 12, 2024
`$HOME` refers to `$DAPPER_SOURCE`, which is set in the same expression and is thus not visible at the time of substitution. This problem is not immediately visible with Docker, Inc.'s docker merely because it resets an unset `$HOME` to `/root` (but still breaking the Go cache). Under podman, this problem is immediately visible because an unset `$HOME` remains unset and subsequently breaks the `go generate` invocation. Fixes #9089. Signed-off-by: Ivan Shapovalov <[email protected]> (cherry picked from commit a7fe1aa) Signed-off-by: Brad Davidson <[email protected]>
brandond
pushed a commit
that referenced
this issue
Jan 12, 2024
`$HOME` refers to `$DAPPER_SOURCE`, which is set in the same expression and is thus not visible at the time of substitution. This problem is not immediately visible with Docker, Inc.'s docker merely because it resets an unset `$HOME` to `/root` (but still breaking the Go cache). Under podman, this problem is immediately visible because an unset `$HOME` remains unset and subsequently breaks the `go generate` invocation. Fixes #9089. Signed-off-by: Ivan Shapovalov <[email protected]> (cherry picked from commit a7fe1aa) Signed-off-by: Brad Davidson <[email protected]>
brandond
pushed a commit
that referenced
this issue
Jan 12, 2024
`$HOME` refers to `$DAPPER_SOURCE`, which is set in the same expression and is thus not visible at the time of substitution. This problem is not immediately visible with Docker, Inc.'s docker merely because it resets an unset `$HOME` to `/root` (but still breaking the Go cache). Under podman, this problem is immediately visible because an unset `$HOME` remains unset and subsequently breaks the `go generate` invocation. Fixes #9089. Signed-off-by: Ivan Shapovalov <[email protected]> (cherry picked from commit a7fe1aa) Signed-off-by: Brad Davidson <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Invoking
make generate
(or, equivalently,.dapper generate
) fails atgo generate
:Unmodified tree build log with podman
make-generate.log
This presumably happens because Dockerfile.dapper sets
HOME=${DAPPER_SOURCE}
in the same statement asDAPPER_SOURCE=...
, which is then not substituted correctly. The problem is not immediately visible on docker only because docker resets an unset $HOME to/root
:Patched tree build log with docker, with changes to make the problem visible
make-generate-docker.log
Still, this causes the Go cache (mounted at
/go/src/github.com/k3s-io/k3s/.cache
) to be effectively broken and unused because $HOME doesn't point to it.The text was updated successfully, but these errors were encountered: