Skip to content

Commit

Permalink
report errors back when cannot load digger config (#1800)
Browse files Browse the repository at this point in the history
* report errors back when cannot load digger config
  • Loading branch information
motatoes authored Nov 6, 2024
1 parent d22abfd commit 40e8911
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cli_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
id: go

- name: Setup Opentofu
uses: opentofu/setup-opentofu@v1.0.3
uses: opentofu/setup-opentofu@v1
with:
tofu_version: 1.6.0-alpha3
tofu_version: 1.8.5

- name: Check out code into the Go module directory
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ee_cli_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
id: go

- name: Setup Opentofu
uses: opentofu/setup-opentofu@v1.0.3
uses: opentofu/setup-opentofu@v1
with:
tofu_version: 1.6.0-alpha3
tofu_version: 1.8.5

- name: Check out code into the Go module directory
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/libs_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:

steps:
- name: Setup Opentofu
uses: opentofu/[email protected].3
uses: opentofu/[email protected].4
with:
tofu_version: 1.6.0-alpha3
tofu_version: 1.8.5

- name: Download Go
uses: actions/setup-go@v5
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- uses: opentofu/setup-opentofu@v1
with:
tofu_version: 1.6.0
tofu_version: 1.8.5

- name: Test
run: |
Expand Down
4 changes: 2 additions & 2 deletions backend/controllers/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ func GetDiggerConfigForBranch(gh utils.GithubClientProvider, installationId int6
})
if err != nil {
log.Printf("Error cloning and loading config: %v", err)
return "", nil, nil, nil, fmt.Errorf("error cloning and loading config")
return "", nil, nil, nil, fmt.Errorf("error cloning and loading config %v", err)
}

log.Printf("Digger config loadded successfully\n")
Expand Down Expand Up @@ -601,7 +601,7 @@ func getDiggerConfigForPR(gh utils.GithubClientProvider, installationId int64, r
diggerYmlStr, ghService, config, dependencyGraph, err := GetDiggerConfigForBranch(gh, installationId, repoFullName, repoOwner, repoName, cloneUrl, prBranch, changedFiles)
if err != nil {
log.Printf("Error loading digger.yml: %v", err)
return "", nil, nil, nil, nil, nil, fmt.Errorf("error loading digger.yml")
return "", nil, nil, nil, nil, nil, fmt.Errorf("error loading digger.yml: %v", err)
}

log.Printf("Digger config loadded successfully\n")
Expand Down

0 comments on commit 40e8911

Please sign in to comment.