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

fix: github release install silently fails if no urls found #571

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

bcook254
Copy link
Contributor

@bcook254 bcook254 commented May 8, 2024

I use this script for my own personal build and found that if the script does not find any valid rpms it will silently continue. This change creates an array and simply selects the first url (as the current script does). If there are no urls then rpm-ostree install should fail.

@bcook254 bcook254 requested a review from castrojo as a code owner May 8, 2024 23:49
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Nov 17, 2024
@bsherman
Copy link
Contributor

I use this script for my own personal build and found that if the script does not find any valid rpms it will silently continue. This change creates an array and simply selects the first url (as the current script does). If there are no urls then rpm-ostree install should fail.

@bcook254 I just stumbled onto this PR as it never seemed to cross my radar before.

Appreciate the simple solution, as the author of this script, I've run into the problem myself and hadn't fixed it yet.

@bsherman bsherman enabled auto-merge November 17, 2024 20:55
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 17, 2024
Copy link
Contributor

@bsherman bsherman left a comment

Choose a reason for hiding this comment

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

I verified this fix locally.

👍

@bsherman bsherman added this pull request to the merge queue Nov 17, 2024
bsherman added a commit to ublue-os/ucore that referenced this pull request Nov 17, 2024
This copies the fix from ublue-os/main#571 to ensure that the github
release install script fails properly when nothing matches the filter.

The bug fixed by this also relates to #214 since that kind
of bug report will be caught by build failures in the future, thanks to
this fix.
Merged via the queue into ublue-os:main with commit 4561ed4 Nov 17, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants