Skip to content

x/cli/app.go: proper provider ordering#26

Merged
xgoffin merged 2 commits into
masterfrom
xg/providersorder
Apr 23, 2026
Merged

x/cli/app.go: proper provider ordering#26
xgoffin merged 2 commits into
masterfrom
xg/providersorder

Conversation

@xgoffin
Copy link
Copy Markdown
Contributor

@xgoffin xgoffin commented Apr 23, 2026

What does this PR do?

The value of the last provider is kept: we want args > flags > env

Fixes #

What are the observable changes?

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • Properly assigned
  • Added/updated tests
  • Added/updated documentation
  • Properly labeled

Additional Notes

@xgoffin xgoffin requested review from a team and AlexisMontagne as code owners April 23, 2026 14:36
@xgoffin xgoffin requested review from FlorianRichardUPF and removed request for a team April 23, 2026 14:36
@Sypheos
Copy link
Copy Markdown
Member

Sypheos commented Apr 23, 2026

Do we want to? Usually, ENV is used to override flags and args when the tool is running in the cluster/container

@xgoffin
Copy link
Copy Markdown
Contributor Author

xgoffin commented Apr 23, 2026

Do we want to? Usually, ENV is used to override flags and args when the tool is running in the cluster/container

The problem is that this is making our life difficult in github actions where the github-provided envs overloads flags 🫠

IMO the more prioritized ones should be the one that we have the most explicit controls on, ie.e the command interface

Copy link
Copy Markdown

@karitham karitham left a comment

Choose a reason for hiding this comment

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

:shipit:

@xgoffin xgoffin merged commit 6751f4b into master Apr 23, 2026
5 checks passed
@xgoffin xgoffin deleted the xg/providersorder branch April 23, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants