You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice (e.g. for godbolt) to have basil be able to output its own version, ideally at this stage this could just be the commit sha it was built from.
The text was updated successfully, but these errors were encountered:
This is generally done through git tags, generally when you create a new tag for a commit. Most build systems (including this one), will give the git version or tag during the build process through environment variables. These environment variables can then be picked up by sbt ( sys.env.get("NAME_OF_ENV_VAR") ) and compiled into the package, accessable by ( version = getClass.getPackage.getImplementationVersion ) .
The plan is to add an sbt action to write the current git tag to a version file, and have that set to the version in scala that is output from the program. It is possibly also useful to have a 'test build' sbt action which derives a new version from the current git commit.
It would be nice (e.g. for godbolt) to have basil be able to output its own version, ideally at this stage this could just be the commit sha it was built from.
The text was updated successfully, but these errors were encountered: