Skip to content

Commit

Permalink
Fix AGENT_COMMIT_OVERRIDE environment variable name (#6530)
Browse files Browse the repository at this point in the history
In PR #4403 a new environment variable has been introduced to use a
commit hash consistent with the hash of the elastic-agent-core DRA
binary used. The env var name was not initialized and ended up using
"MANIFEST_URL" which is obviously incorrect.

This commit sets the correct name AGENT_COMMIT_OVERRIDE to avoid using
the manifest url as a commit hash
  • Loading branch information
pchila authored Jan 17, 2025
1 parent 32ecfc2 commit 28117ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-tools/mage/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const (
//ManifestUrlEnvVar is the name fo the environment variable containing the Manifest URL to be used for packaging agent
ManifestUrlEnvVar = "MANIFEST_URL"
// AgentCommitHashEnvVar allows to override agent commit hash string during packaging
AgentCommitHashEnvVar
AgentCommitHashEnvVar = "AGENT_COMMIT_HASH_OVERRIDE"

// Mapped functions
agentPackageVersionMappedFunc = "agent_package_version"
Expand Down

0 comments on commit 28117ca

Please sign in to comment.