Skip to content

Commit 214dc41

Browse files
committed
verify
1 parent 2285b7b commit 214dc41

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

cmd/manageDeploymentRepo.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package cmd
33
import (
44
"fmt"
55

6+
"github.com/spf13/cobra"
7+
68
deploymentrepo "github.com/openmcp-project/bootstrapper/internal/deployment-repo"
79
"github.com/openmcp-project/bootstrapper/internal/log"
8-
"github.com/spf13/cobra"
910
)
1011

1112
const (

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/openmcp-project/bootstrapper
33
go 1.25.0
44

55
require (
6+
github.com/go-git/go-billy/v5 v5.6.2
67
github.com/go-git/go-git/v5 v5.16.2
78
github.com/sirupsen/logrus v1.9.3
89
github.com/spf13/cobra v1.9.1
@@ -20,7 +21,6 @@ require (
2021
github.com/davecgh/go-spew v1.1.1 // indirect
2122
github.com/emirpasic/gods v1.18.1 // indirect
2223
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
23-
github.com/go-git/go-billy/v5 v5.6.2 // indirect
2424
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
2525
github.com/inconshreveable/mousetrap v1.1.0 // indirect
2626
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect

internal/deployment-repo/deploymentRepoManager.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"path/filepath"
88

99
"github.com/go-git/go-git/v5"
10+
1011
gitconfig "github.com/openmcp-project/bootstrapper/internal/git-config"
1112
"github.com/openmcp-project/bootstrapper/internal/log"
1213
ocmcli "github.com/openmcp-project/bootstrapper/internal/ocm-cli"

internal/deployment-repo/repo.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"github.com/go-git/go-git/v5/plumbing"
1111
"github.com/go-git/go-git/v5/plumbing/object"
1212
"github.com/go-git/go-git/v5/plumbing/storer"
13+
1314
gitconfig "github.com/openmcp-project/bootstrapper/internal/git-config"
1415
"github.com/openmcp-project/bootstrapper/internal/log"
1516
)

internal/deployment-repo/templater.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99

1010
"github.com/go-git/go-billy/v5"
1111
"github.com/go-git/go-git/v5"
12+
1213
"github.com/openmcp-project/bootstrapper/internal/log"
1314
ocmcli "github.com/openmcp-project/bootstrapper/internal/ocm-cli"
1415
"github.com/openmcp-project/bootstrapper/internal/template"
@@ -54,6 +55,9 @@ func TemplateDir(templateDirectory string, templateInput map[string]interface{},
5455
}
5556
if !d.IsDir() {
5657
relativePath, errInWalk = filepath.Rel(templateDirectory, path)
58+
if errInWalk != nil {
59+
return fmt.Errorf("failed to get relative path for %s: %w", path, errInWalk)
60+
}
5761

5862
logger.Debugf("Found template file: %s", relativePath)
5963

0 commit comments

Comments
 (0)