Skip to content

Commit

Permalink
[DT-3777] error loading a local config file (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycanty authored Feb 18, 2021
1 parent c838c3e commit 7e56831
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,3 +369,9 @@ Builds are automatically launched on tagging.

Tags with the format image-0.0.0 automatically launch a Docker images build that are available through Docker Hub.
Tags with the format v0.0.0 automatically launch a new release on Github for the TGF executable.

Tests that involve docker builds are not compatible with docker buildkit. Run them with:

```bash
DOCKER_BUILDKIT=0 go test ./...
```
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ func (config *TGFConfig) findRemoteConfigFiles(location, files string) []string
log.Debugln("Reading configuration from", fullConfigPath)
source := must(getter.Detect(fullConfigPath, must(os.Getwd()).(string), getter.Detectors)).(string)

err := getter.Get(destConfigPath, source)
err := getter.GetFile(destConfigPath, source)
if err == nil {
_, err = os.Stat(destConfigPath)
if os.IsNotExist(err) {
Expand Down

0 comments on commit 7e56831

Please sign in to comment.