Skip to content

bug(makefile): make build does not inject version due to outdated CONSTANTS_PATH #7763

@zackchadwick

Description

@zackchadwick

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

  1. clone the repository
  2. run make build
  3. 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

Metadata

Metadata

Labels

bugSomething isn't workingcommunityCommunity contribution

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions