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

Fix: set HOME for provided user after build image extension (#960) #964

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

natalieparellano
Copy link
Member

Signed-off-by: Natalie Arellano [email protected]

@natalieparellano natalieparellano requested a review from a team as a code owner November 22, 2022 21:15
@natalieparellano natalieparellano linked an issue Nov 22, 2022 that may be closed by this pull request
@natalieparellano
Copy link
Member Author

cc @BarDweller

@codecov
Copy link

codecov bot commented Nov 22, 2022

Codecov Report

Merging #964 (0e69b0a) into main (532fc6c) will not change coverage.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #964   +/-   ##
=======================================
  Coverage   64.49%   64.49%           
=======================================
  Files          86       86           
  Lines        6175     6175           
=======================================
  Hits         3982     3982           
  Misses       1809     1809           
  Partials      384      384           
Flag Coverage Δ
os_linux 63.95% <0.00%> (ø)
os_windows 58.84% <0.00%> (ø)
unit 63.95% <0.00%> (ø)

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

@@ -71,6 +71,9 @@ func (e *extendCmd) Exec() error {
if err = priv.RunAs(e.UID, e.GID); err != nil {
return cmd.FailErr(err, fmt.Sprintf("exec as user %d:%d", e.UID, e.GID))
}
if err = priv.SetEnvironmentForUser(e.UID); err != nil {
Copy link
Member Author

Choose a reason for hiding this comment

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

Covered in acceptance

@natalieparellano natalieparellano merged commit 4e6e4f7 into main Nov 28, 2022
@natalieparellano natalieparellano deleted the fix/extend-home branch November 28, 2022 17:38
natalieparellano added a commit that referenced this pull request Nov 28, 2022
)

Signed-off-by: Natalie Arellano <[email protected]>

Signed-off-by: Natalie Arellano <[email protected]>
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.

Incorrect environment for buildpacks with an extended image.
2 participants