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
github_packages: fix versioned bottle names. #11048
github_packages: fix versioned bottle names. #11048
Conversation
Review period skipped due to |
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.
Name components may contain lowercase letters, digits and separators. A separator is defined as a period, one or two underscores, or one or more dashes. A name component may not start or end with a separator.
https://docs.docker.com/engine/reference/commandline/tag/
Upper case letters are not permitted in name components. Good idea otherwise!
How about a single hyphen or underscore? $ ls *-[0-9]*.rb
ntfs-3g.rb pyqt-3d.rb
$ ls *-[0-9].rb
zsh: no matches found: *-[0-9].rb I am actually surprised that no formulae match |
That still leaves slight ambiguity in parsing, but if we don't have any formulae that meet that pattern we're probably safe. Doesn't look like there are any third-party tap packages in formulae.brew.sh that suggests we'll probably be fine. We might want to think about writing an audit just for the main tap to ensure we don't accidentally commit formulae that would clash with another one? |
Like @mistydemeo I’d rather figure out something unambiguous in parsing. We already use single dash, double dash, single underscore, single period as separators. We don’t use double underscores so I’d propose one of those. Another slightly off the wall option that would be permitted would be gcc/10. Definitely no risk of clashing in that case and given we’re already doing core/gcc then core/gcc/10 feels like it makes sense. The more I think about this the more I like it. Thoughts? |
c699b5e
to
83f00b9
Compare
83f00b9
to
b5e1342
Compare
b5e1342
to
6c3c2c5
Compare
`@` cannot be used in Docker image names. Use `/` instead (which we already use in image names so has some precedent). Make `mktemp` use `AT` (consistent with `Formula` subclasses), too.
6c3c2c5
to
fd251c9
Compare
@sjackman 👍🏻 d in Slack. |
I feel a little weird about |
@
cannot be used in Docker image names. UseAT
instead (which we already use in class names so has some precedent).Make
mktemp
consistent, too.