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

Dockerfile.dapper: set $HOME properly #9090

Merged
merged 1 commit into from Jan 3, 2024

Conversation

intelfx
Copy link
Contributor

@intelfx intelfx commented 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.

Types of Changes

Bug fix — build system

Verification

Run make generate under podman

Testing

N/A — build system

Linked Issues

User-Facing Change

NONE

@intelfx intelfx requested a review from a team as a code owner December 22, 2023 21:53
`$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 <intelfx@intelfx.name>
Copy link

codecov bot commented Dec 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3190a5f) 46.35% compared to head (18b1172) 41.62%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9090      +/-   ##
==========================================
- Coverage   46.35%   41.62%   -4.73%     
==========================================
  Files         148      148              
  Lines       15900    15900              
==========================================
- Hits         7371     6619     -752     
- Misses       7354     8151     +797     
+ Partials     1175     1130      -45     
Flag Coverage Δ
e2etests ?
inttests 38.84% <ø> (-0.06%) ⬇️
unittests 18.35% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

None yet

3 participants