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
Remove version from generated header #875
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me, I also noticed the clutter. But, might there have been a reason to add the version?
Anyways, LGTM
I want to voice my opinion without approving nor blocking this PR. I agree the A possible alternative would be versioned templates. So devctl can be updated independently from the actual version of the template. So the header would not include the devctl version but the version of the template. |
This is a very good suggestion, IMHO. |
Would that be a Semver per template, or rather just an integer to increment with every change, or a last modified date? |
Last modified date sounds good. A commit hash could be also useful for people wanting to see the who and why something in a template was changed. |
The problem with a commit hash is that it only exists after the change was made. So I'd favour a last modified date. |
In my mind it could work like this: Like opsctl, devctl would load the templates from a repository during runtime. The information (hash + last modified date) would be available then |
IMO the chain of dependencies grows a bit long for what it's trying to accomplish.
Currently we already need three PRs (giantswarm/devctl, giantswarm/github and the target repo) to push a change through to the target repo. |
Doesn't keeping templates in a separate repo and loading the repo inside devctl free us of doing the devctl and github PRs? assuming devctl is compatible. |
Anyone working on this and is ready soon? Otherwise I want to try implementing this using |
@ubergesundheit Please go ahead! I was up for the minimal change this PR brings, but don't see me doing the other approach. |
This change removes the version number from the generated header.
Before this, many "Align files" PRs consist of meaningless changes like this one:
Checklist