-
Notifications
You must be signed in to change notification settings - Fork 115
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
Use bashbrew
to gather the canonical list of supported suites
#164
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple questions
| | ||
latest | .*stable | devel | rolling | testing # stable/development/rolling aliases | ||
| | ||
.* - .* # anything with a hyphen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know the "x"
option causes the regular expression engine to ignore whitespace, but is there a reason to not just have .*-.*
or even just -
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought .*-.*
looked a little compressed and this helped it be more obvious, personally, but I don't feel strongly about it (especially with the comment out to the side which makes it pretty obvious 😂) -- we can't do just -
because of the :
+$
anchoring outside the parenthesis here (we're matching the full "tag" portion of the image references explicitly with this).
' | ||
)" | ||
# TODO expand this and do our supported architectures detection here too, while we've already done the lookups? Ubuntu version number lookups via this method too? (unfortunately we can't map Debian codenames to aliases like "stable" this way) | ||
eval "distsSuites=( $dists )" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this safer than mapfile
/readarray
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's more reliable in my experience (and certainly no less safe).
This is an attempt to help codify #162, and make sure that it's correct / mostly automated. I'd love to figure out a clean way to help @docker-library-bot be able to make these kinds of updates automatically, but that's a much larger/more complicated problem.
I'm not 100% sold on it, especially how fiddly and frankly unapproachable my filtering method is.