-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Rename BASE_URL to OK_BASE_URL
- Loading branch information
Showing
3 changed files
with
6 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,12 @@ import ( | |
"strings" | ||
) | ||
|
||
const BaseUrlEnvName = "OK_BASE_URL" | ||
const DefaultBaseUrl = "[email protected]:oslokommune/golden-path-boilerplate.git//" | ||
const DefaultPackagePathPrefix = "boilerplate/terraform" | ||
|
||
func Run(pkgManifestFilename string, outputFolders []string) error { | ||
baseUrlOrPath := os.Getenv("BASE_URL") | ||
baseUrlOrPath := os.Getenv(BaseUrlEnvName) | ||
|
||
cmds, err := CreateBoilerplateCommands(pkgManifestFilename, outputFolders, baseUrlOrPath) | ||
if err != nil { | ||
|
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 |
---|---|---|
|
@@ -42,7 +42,7 @@ func TestInstall(t *testing.T) { | |
}, | ||
}, | ||
{ | ||
testName: "Should support URL in BASE_URL", | ||
testName: "Should support URL in OK_BASE_URL", | ||
packageManifestFilename: "package.yml", | ||
baseUrl: "[email protected]:oslokommune/SOMETHING_ELSE.git//", | ||
expectBoilerplateCommands: []*exec.Cmd{ | ||
|
@@ -56,7 +56,7 @@ func TestInstall(t *testing.T) { | |
), | ||
}, | ||
}, { | ||
testName: "Should support file path in BASE_URL", | ||
testName: "Should support file path in OK_BASE_URL", | ||
packageManifestFilename: "package.yml", | ||
baseUrl: "..", | ||
expectBoilerplateCommands: []*exec.Cmd{ | ||
|