-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix integration test and address comments
- Loading branch information
Showing
5 changed files
with
45 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Ignore files | ||
*.md | ||
*.sh | ||
*.yml | ||
*.yaml | ||
.gitignore | ||
|
||
# Ignore folders | ||
.github/ | ||
.git/ | ||
contrib/ | ||
|
||
# Don't include a previously built binary | ||
unbound_exporter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package build | ||
|
||
const Unspecified = "Unspecified" | ||
|
||
// BuildID is set by the compiler (using -ldflags "-X util.BuildID $(git rev-parse --short HEAD)") | ||
// and is used by GetID | ||
var BuildID string | ||
|
||
// BuildBranch is set by the compiler and is used by GetBranch | ||
var BuildBranch string | ||
|
||
// GetBuildID identifies what build is running. | ||
func GetID() (BuildID string) { | ||
if BuildID != "" { | ||
return BuildID | ||
} | ||
|
||
return Unspecified | ||
} | ||
|
||
// GetBranch identifies the building host | ||
func GetBranch() (BuildBranch string) { | ||
if BuildBranch != "" { | ||
return BuildBranch | ||
} | ||
|
||
return Unspecified | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.