-
Notifications
You must be signed in to change notification settings - Fork 64
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: RTI verify installed via CLI #2191
Comments
Agreed. RTI should support |
Related conversation lf-lang/reactor-c#348 (comment) |
The latest tag may not always correspond with the latest release (a developer can push any arbitrary tag), but I did find out how to get the latest release tag for downloading and installing lingo: export lingo_version=$(git ls-remote --refs --sort="version:refname" --tags https://github.com/lf-lang/lingo | cut -d/ -f3- | tail -n1)
git clone --single-branch --depth 1 --branch ${lingo_version} https://github.com/lf-lang/lingo
cargo install --path ./lingo
rm -rf /var/cache/lf-lang |
It's a nice idea to use tags to determine what the build version is. That's less work than maintaining a version number manually, but it will not allow us to distinguish between some random (nightly/snapshot) build and the actual latest release... |
The |
Yes, that makes sense, but by the time there are commits on the branch since that tag, there is no way of knowing that it's actually not the release version but something else. We could compare the current commit against the commit of the tag and change the version number if its not the same. Semantic versioning allows for additions to the version number that help explain its origin. The current RTI code, however, doesn't use semver but some binary encoding... |
User story: As a Lingua Franca developer and user, I would like to know that the C RTI is installed and executable, such as a
--version
or--is-present
command that exits with return code 0 if the RTI binary is installed and runnable, so that I can verify development environments I provision.Background: Docker, Ansible, Multipass, VMWare, CodePods, etc., are used to build and distribute development environments.
lfc
andlingo
both support a--version
command that prints the version of the application and exits with return code 0. This allows a baseline verification that the tools have been installed and can load without missing dependencies. The C RTI, however, has no such argument, and instead onlygrep
-ing the output ofRTI
with no arguments can be used to infer the binary is installed and runnable. This solution is brittle.Instead, either a
--version
,--status
,--is-present
or similar would allow for a primitive verification that it has been compiled and installed correctly.The text was updated successfully, but these errors were encountered: