Giter Site home page Giter Site logo

Comments (8)

sethvargo avatar sethvargo commented on July 28, 2024

@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.

sethvargo avatar sethvargo commented on July 28, 2024

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.

sethvargo avatar sethvargo commented on July 28, 2024

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.

seth avatar seth commented on July 28, 2024

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.

sethvargo avatar sethvargo commented on July 28, 2024

@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.

seth avatar seth commented on July 28, 2024

+1

from omnibus.

jessereynolds avatar jessereynolds commented on July 28, 2024

Great! I'll give that a shot.

from omnibus.

jessereynolds avatar jessereynolds commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.