Skip to content

Commit 40e8911

Browse files
authored
report errors back when cannot load digger config (#1800)
* report errors back when cannot load digger config
1 parent d22abfd commit 40e8911

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/cli_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
id: go
1919

2020
- name: Setup Opentofu
21-
uses: opentofu/setup-opentofu@v1.0.3
21+
uses: opentofu/setup-opentofu@v1
2222
with:
23-
tofu_version: 1.6.0-alpha3
23+
tofu_version: 1.8.5
2424

2525
- name: Check out code into the Go module directory
2626
uses: actions/checkout@v4

.github/workflows/ee_cli_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
id: go
1919

2020
- name: Setup Opentofu
21-
uses: opentofu/setup-opentofu@v1.0.3
21+
uses: opentofu/setup-opentofu@v1
2222
with:
23-
tofu_version: 1.6.0-alpha3
23+
tofu_version: 1.8.5
2424

2525
- name: Check out code into the Go module directory
2626
uses: actions/checkout@v4

.github/workflows/libs_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313

1414
steps:
1515
- name: Setup Opentofu
16-
uses: opentofu/setup-opentofu@v1.0.3
16+
uses: opentofu/setup-opentofu@v1.0.4
1717
with:
18-
tofu_version: 1.6.0-alpha3
18+
tofu_version: 1.8.5
1919

2020
- name: Download Go
2121
uses: actions/setup-go@v5
@@ -49,7 +49,7 @@ jobs:
4949
5050
- uses: opentofu/setup-opentofu@v1
5151
with:
52-
tofu_version: 1.6.0
52+
tofu_version: 1.8.5
5353

5454
- name: Test
5555
run: |

backend/controllers/github.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ func GetDiggerConfigForBranch(gh utils.GithubClientProvider, installationId int6
570570
})
571571
if err != nil {
572572
log.Printf("Error cloning and loading config: %v", err)
573-
return "", nil, nil, nil, fmt.Errorf("error cloning and loading config")
573+
return "", nil, nil, nil, fmt.Errorf("error cloning and loading config %v", err)
574574
}
575575

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

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

0 commit comments

Comments
 (0)