-
Notifications
You must be signed in to change notification settings - Fork 178
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
fpm-deployment: update VERSION
field in fpm.toml with actual version
#702
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.
LGTM. Thanks @perazz for this PR.
You can try running this script locally and try to generate the fpm compatible |
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.
Why is this change necessary? We already deploy the VERSION
file correctly for the stdlib-fpm branch.
Currently, fpm.toml in the deployed branch reports |
Maybe, I misunderstand something here, but this is exactly what is expected. The version is already deployed correctly in If I recall correctly, I actually implemented this feature of reading the version from a file in fpm for stdlib to have a single place to specify the version for both build systems (fpm and CMake). |
Oh I see, version can be an external file. That |
That was unfortunately never true, especially due to the default names for the source directories as well as the automatic discovery of executables, the TOML manifest alone is usually incomplete. Running fpm will generate an internal representation which is complete, the two options are to have fpm dump the internal model or reimplements the whole logic supported by fpm. |
Please close without merging @jvdp1, thank you. |
Ok. Thank you. |
See #701, this update in the fpm deployment script updates the
VERSION
placeholder in fpm.toml so an actual version is printed.I don't know how to test the deployment on my fork.