Skip to content
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

CNS 158 makefile abort on version mismatch with the actual code #221

Conversation

orenl-lava
Copy link
Contributor

  • Please check if the PR fulfills these requirements
  • Commit message follows the Contribution Guidelines
  • Tests ran locally and added/modified if needed
  • Docs have been added/updated, if applicable
  • If applicable - JIRA ticket ID was added
  • What kind of change does this PR introduce? (Bug fix, feature, unit tests, docs update, ...)

Bug fix

  • What is the current behavior? (You can also link to an open issue here)

The Makefile is used to generate production versions. It uses a VERSION variable to indicate the version that the lavad executable will report. It can be set by the command line (e.g. VERSION=0.4.1 make) or detected from the current checked-out code (as the most recent tag). However, it did not verify that the VERSION (requested/detected) matches the current code, and that the current code is clean.

  • What is the new behavior (if this is a feature change)?

The Makefile now checks that the VERSION matches that of the current code, and that there are no uncommited changes or untracked files.

  • Please describe what manual tests you ran, if applicable

Run 'make' on with matching and matching versions, and on clean and dirty code trees.

  • Other information:

Oren Laadan added 2 commits January 5, 2023 18:23
Make sure that the specified VERSION matches that of the current checked-out
code, and that the code is clean (i.e. no uncommitted changes, and no extra
commits beyond the recent tag).
@orenl-lava orenl-lava changed the title Cns 158 makefile abort on version mismatch with the actual code CNS 158 makefile abort on version mismatch with the actual code Jan 5, 2023
@ranlavanet ranlavanet requested review from ranlavanet and Yaroms and removed request for ranlavanet January 10, 2023 16:46
@orenl-lava
Copy link
Contributor Author

Superseded by PR #235

@orenl-lava orenl-lava closed this Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant