Skip to content

setup-ci-host.sh: Replaced packages alias with function - #2402

Merged
larsewi merged 1 commit into
cfengine:masterfrom
larsewi:fix-packages-alias-in-function
Aug 6, 2026
Merged

setup-ci-host.sh: Replaced packages alias with function#2402
larsewi merged 1 commit into
cfengine:masterfrom
larsewi:fix-packages-alias-in-function

Conversation

@larsewi

@larsewi larsewi commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Aliases are expanded when a function body is parsed, so the packages alias defined later during OS discovery was never resolved inside install-packages.

Signed-off-by: Lars Erik Wik lars.erik.wik@northern.tech

Aliases are expanded when a function body is parsed, so the packages
alias defined later during OS discovery was never resolved inside
install-packages.

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi

larsewi commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@larsewi
larsewi requested a review from craigcomstock August 6, 2026 11:28
@larsewi

larsewi commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Aliases are expanded when a function definition is read, not when the function is executed, because a function definition is itself a command.

@larsewi
larsewi merged commit 9ca09c3 into cfengine:master Aug 6, 2026
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants