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

Update tools/get-images.sh to handle both Go and Python versions of yq #563

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

mvlassis
Copy link
Contributor

Closes #562

This PR updates tools/get-images.sh to be version agnostic when it comes to the yq utility. There is additional context in the issue's description.

From experimentation, the Python version of yq also adds quotes to the output, so tr is called to remove any quote characters from all the entries.

To test:

  • Run bash tools/get-images.sh with the snap version of yq (installed via sudo snap install yq)
  • Run bash tools/get-images.sh with the Python verison of yq (installed via pip install yq)
  • The output should be the same, and the same as when running bash tools/get-images.sh in the main branch.

@mvlassis mvlassis requested a review from a team as a code owner August 29, 2024 13:06
rgildein
rgildein previously approved these changes Aug 29, 2024
Copy link
Contributor

@rgildein rgildein left a comment

Choose a reason for hiding this comment

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

LGTM,
tested versions:

  • yq (v4.44.2 (2566)) installed with snap
  • yq (Version: 3.4.3) installed with pip

@kimwnasptd
Copy link
Contributor

(discussed during the daily)

The CI is currently blocked because of canonical/charmcraft#1845

@kimwnasptd kimwnasptd merged commit 5351223 into main Sep 9, 2024
51 checks passed
@kimwnasptd kimwnasptd deleted the kf-6185-update-get-images branch September 9, 2024 07:14
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.

tools/get-images.sh when not using snap version of yq
3 participants