-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix building from archived source code without .git #50
Comments
OK, I see. That's a design problem. We decided to have a single source of truth, and this single source is Git now. So, if you download a tarball, that's not enough. From my point of view, we have to decide between
I think we don't want to create a second commit with an updated version number in the CI for each code change commit. Think of how the history would look like. How do other projects solve this problem? Every user of |
There seems to be an env variable Idea: we could manually create a source zip in the CI including the version info. |
One thing we could do is detect lack of .git and try parsing the parent directory in that case - i.e. |
Good idea. AFAIK, this directory name should be composed of the project name and release version. So even branches / tags could be handled properly. |
@git-developer Integrating setuptools-scm in #30 broke this.
We could disable the Assets generating the source builds and make everyone clone from git, but:
We could simply also hardcode a "unknown version from tarball" string or otherwise hardcode some version, but that might make supporting it a nightmare, it would break the daemon vs sc-controller version mismatch detection and possibly confuse the users too.
What we could do that'd possibly be a good solution is have the CI commit the calculated git version to the repo automatically?
But I am unsure how to do it in a way which would actually be up to date and not
current version - 1
.I am blanking out on any other good solutions.
The text was updated successfully, but these errors were encountered: