Code Monkey home page Code Monkey logo

Comments (7)

aspiers avatar aspiers commented on July 30, 2024

Yes, that doesn't surprise me. What behaviour do you see when you try to use it alone, and what would you ideally want to see instead?

from obs-service-tar_scm.

lgbaldoni avatar lgbaldoni commented on July 30, 2024

Files could not be expanded: service tar_scm failed:
HEAD is now at ...
\e[0;31m@TAG_OFFSET@ can not be expanded\e[0m
Cleaning: /var/tmp/obs_service/ ...

This is what I see.
I'd like to be able to hardcode a version number but keep the original tag offset.

from obs-service-tar_scm.

aspiers avatar aspiers commented on July 30, 2024

Sorry, I don't understand what you mean by "the original tag offset". Can you give an example?

from obs-service-tar_scm.

lgbaldoni avatar lgbaldoni commented on July 30, 2024

Sorry, I probably used the wrong terms.

I mean that, for example I have

<param name="filename">name</param>
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@</param>

and obtain name-1.2git.5678

I'd like to be able to do:

<param name="filename">name-2.0git.</param>
<param name="versionformat">@TAG_OFFSET@</param>

to obtain name-2.0git.5678

I admit the case use is somewhat rare and possibly misleading,
but do you think such a thing could be feasible?

from obs-service-tar_scm.

aspiers avatar aspiers commented on July 30, 2024

It's not clear to me exactly what you want here, as there's no advantage to moving the tag string from versionformat to filename. Or are you saying you want to manually specify which tag to use, and have @TAG_OFFSET calculated relative to that? If so, then something like this should work fine:

<param name="filename">name</param>
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@</param>
<param name="revision">2.0</param>

from obs-service-tar_scm.

lgbaldoni avatar lgbaldoni commented on July 30, 2024

But whatf revision 2.0 doesn't actually exist?

What I'm trying to do here is to insert an arbitrary tag but keep the offset or at least the commit hash as reference.

I know it's bad form, but some projects are sloppy in that regard.

from obs-service-tar_scm.

aspiers avatar aspiers commented on July 30, 2024

Sorry, I still can't understand what you want. Please can you be more precise? What do you mean by "insert an arbitrary tag"?

from obs-service-tar_scm.

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.