Expected Behavior
Running make build should output a binary in the bin/ directory that reports a version starting with snapshot- based on the current commit hash, such as:
./bin/kics version
Keeping Infrastructure as Code Secure snapshot-53dbe657
Actual Behavior
Running 'make build' outputs a binary in the bin/ directory that reports the hard-coded development version that's in the internal/constants/constants.go file.
./bin/kics version
Keeping Infrastructure as Code Secure development
Steps to Reproduce the Problem
- clone the repository
- run
make build
- run
./bin/kics version and observe the incorrect versioning
Specifications
- Version: applies to all v2 commits / branches of the repository
- Platform: N/A
- Subsystem: build process / makefile