-
Notifications
You must be signed in to change notification settings - Fork 105
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
[Feature Request] allow a flag to 'rediscover' previous versions #98
Comments
🤔 Maybe we should just have it always return the current version. To be honest I'm not entirely sure why we went with 'only return it if it's >= the current version' - it might just be an arbitrary version from 5 years ago when we first implemented Having it always return the current version feels more accurate, since it'll always reflect the actual state of the world. There might be some reason I'm missing though. FWIW, it's not possible to record duplicate versions, since Concourse treats each version as unique keyed on its content directly. |
If it means anything we've had the exact same issue & as a result we sometimes swap out using the semver resource with the |
I would be good with 'just return the value in git'. With the ability to now pin resources to a version in the UI, I thought I would need this less. However, since if I reinstall the pipeline I lose previous versions, I still have a gap. Thanks for the response |
As to vito's point about not being possible to record duplicate versions, wouldn't this require a different way to uniquely identify the "version" according to Concourse? e.g., 1.0 -> 2.0 -> 1.0 couldn't be stored in the |
@aegershman It's OK for a resource to return a version which has already been saved; it'll just move to the "latest" position in the version history. So I think it'd be OK for this resource to just always return the current version. FWIW, what you suggested would definitely be possible and would make it more obvious that the version has rolled back, since you'll have two versions in the history. I kind of like that idea, but it would only be possible for drivers which support versioning of the version itself. For I'd like to re-assess the design of this resource in the future; there are a few subtle and odd things about it that I've run into over the years. Maybe when we get around to updating it for the new resource interface we can try and "do it right". One thing I'd like to explore more is having it be more opinionated about using |
I like the idea of using tags for recording the version, we are doing that now by keeping the version file outside the repository and using it on a We had used this plugin in the past for gradle, but dropped it for the support in concourse so we could apply versioning more broadly to our (possibly non-gradle) projects |
We wrote tasks that allow us to quickly roll back a deployment based on a previous version. We also track the currently deployed version so that we can restart / redeploy.
When we 'roll back' a version and push that version to a file using the git driver - the resource will not 'discover' it as new since the version has shown in the past.
After the last step - version correctly stores 1.0.0 but still reports 2.0.0 in concourse due to this behavior.
I would like to propose an option like below
If this is a feature that could be included - I can work on a PR
The text was updated successfully, but these errors were encountered: