forked from kelseyhightower/confd
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Allow YAML files to have no extension (#35)
The file extension wasn't used previously to determine if a file was yaml. So the addition of JSON and thus checking of extensions introduced a scenario where yaml files without extension resulted in an error. This change allows resets the default behavior that a file with no extension is assumed to be yaml. Added integration tests to test all three variants
- Loading branch information
Showing
3 changed files
with
4 additions
and
4 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package main | ||
|
||
const Version = "0.18.3-dev" | ||
const Version = "0.18.3" | ||
|
||
// We want to replace this variable at build time with "-ldflags -X main.GitSHA=xxx", where const is not supported. | ||
var GitSHA = "" |