Comments (8)
@jessereynolds I would much prefer a Pull Request that removes all invalid characters, rather than just ~
. I realize this is the only problem in your scope, but this will likely come up again with a different character.
from omnibus.
Alternatively, we could generate a SHA for the tag instead. So, build it the same, but then SHA that value and use it for the tag.
from omnibus.
In either case, this will invalidate all existing git caches. That's fine, but something we will need to make note of in the release notes.
from omnibus.
The downside of putting the digest of the version into the tag is that human debugging of the cache becomes much harder. If we can convince ourselves that there is a reasonably small set of illegal characters, it might be worth going that route.
For my use, since I don't make funny version numbers, going to SHA for version in tag is a net loss.
from omnibus.
@seth yup - @schisamo and I discussed that this morning. I think I would prefer something like:
tag = version.gsub(/[SOME_MAGICAL_REGEX_OF_VALID_CHARACTERS]+/, '-')
AKA, replace all "bad" version characters with a valid one, logging a debug or warn message when doing so.
from omnibus.
+1
from omnibus.
Great! I'll give that a shot.
from omnibus.
Hmmm, it seems I must have been running an older version of omnibus when I encountered the above error. With current master I cannot reproduce the error. The reason is that the tag is now generated just from software.name and the version string doesn't come into it at all.
from omnibus.
Related Issues (20)
- Apple M1 Support HOT 1
- Mixlib::ShellOut::InvalidCommandOption: option ':lockdir' is not a valid option for Mixlib::ShellOut HOT 2
- Current Chef RPM packages conflict with chef-workstation HOT 2
- HealthCheck is busted on FreeBSD, Solaris and AIX HOT 2
- Omnibus needs an integration environment with Solaris/FreeBSD/AIX/Windows that checks the healthcheck HOT 1
- Old code exceptions in HealthCheck should likely be deleted HOT 1
- Update Packager spec to avoid failures after March 2022
- macOS healthcheck checks dylib install ID as if it was a dependency HOT 1
- omnibus build certificate verify failed (certificate has expired)
- omnibus does not support rockylinux HOT 1
- Source code of chef-cleanroom gem not available
- Timestamp servers listed in \packagers are no longer available?
- Allow to add recommended dependencies
- Releases are not publishing to rubygems.org HOT 1
- Portable health checks
- `append_timestamp` doesn't really exist HOT 1
- omnibus always tries to mkdir /opt/$PROJECT
- kitchen docs are... not correct
- Fully deprecate the usage of chef-sugar HOT 1
- Concurrency issues if two software definitions have the same source directory HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omnibus.