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

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

Copy link
Copy Markdown
ContributorAuthor

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@larsewi

Copy link
Copy Markdown
ContributorAuthor

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:masterAug 6, 2026
4 of 7 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants

@larsewi@cf-bottom@craigcomstock