Skip to content

fix: defer variable expansion in gc-sdk aliases - #4210

Merged
chewi merged 1 commit into
flatcar:mainfrom
Harsh-2005d:gce-sdk
Aug 12, 2026
Merged

fix: defer variable expansion in gc-sdk aliases#4210
chewi merged 1 commit into
flatcar:mainfrom
Harsh-2005d:gce-sdk

Conversation

@Harsh-2005d

Copy link
Copy Markdown
Contributor

FIX

Wrap aliases in single quotes to evaluate $PWD and $HOME at execution time rather than when the script is sourced.

How to use

[ describe what reviewers need to do in order to validate this PR ]

Testing done

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

@Harsh-2005d
Harsh-2005d requested a review from a team as a code owner August 12, 2026 14:32

@chewi chewi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good catch. I think HOME is unlikely to be an issue in practise, but it should be quoted. Much more importantly though, PWD will almost certainly be wrong without this fix.

@chewi chewi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wait, a stray ` has snuck in at the end.

Wrap docker aliases in single quotes to evaluate $PWD and $HOME
at execution time rather than when the script is sourced.

Signed-off-by: Harsh Dahiya <dahiyaharsh2005@gmail.com>
@Harsh-2005d

Copy link
Copy Markdown
Contributor Author

Sorry for that. Fixed.

@chewi
chewi merged commit 42b976e into flatcar:main Aug 12, 2026
1 of 4 checks passed
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.

2 participants