Comments (7)
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.
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.
Sorry, I don't understand what you mean by "the original tag offset". Can you give an example?
from obs-service-tar_scm.
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.
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.
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.
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)
- "osc service run" fails when using obs_scm and new git filter on the same repo twice
- tar.service only handles one obscpio file HOT 1
- KeyError: 'object_kind' in TarSCM/tasks.py on Leap 15.4 HOT 2
- Support different scm repository name in case of forks HOT 1
- obs_scm seems to broken on CentOS_8 HOT 7
- make included .git reproducible
- Service broken if .lock file left over by previous versions HOT 2
- Causes "unresolvable" error for Fedora 34+ HOT 3
- 'exclude' behaviour change in obs_scm HOT 1
- test fail on Fedora 37 HOT 4
- .obscpio file format hex code means? HOT 1
- obs_gbp: dpkg-scansources also finds any .dsc in the source clone
- Use numeric owner and group to avoid privacy leaking HOT 1
- Error with Python 3.12 due to deprecated and removed 'readfp' usage HOT 2
- Error in Fedora_Rawhide: AttributeError: 'RawConfigParser' object has no attribute 'readfp'. Did you mean: 'read'? HOT 1
- project top level has a directory with the same name as the branch, the pull will fail.
- Chooses the wrong tag in case of several tags being present HOT 1
- @TAG_OFFSET@ not working without a tag in versionformat
- Please provide better documentation
- We should default to main branches too HOT 1
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 obs-service-tar_scm.