Skip to content

Commit 519883a

Browse files
chore: do not setup runtime for special system dir
1 parent dd84ea2 commit 519883a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/repos/get.go

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ type Manager struct {
5858
storageDir string
5959
gitDir string
6060
runtimeDir string
61+
systemDir string
6162
runtimes []Runtime
6263
credHelperConfig *credHelperConfig
6364
}
@@ -75,6 +76,7 @@ func New(cacheDir string, runtimes ...Runtime) *Manager {
7576
storageDir: root,
7677
gitDir: filepath.Join(root, "git"),
7778
runtimeDir: filepath.Join(root, "runtimes"),
79+
systemDir: filepath.Join(root, "system"),
7880
runtimes: runtimes,
7981
}
8082
}
@@ -271,6 +273,10 @@ func (m *Manager) setup(ctx context.Context, runtime Runtime, tool types.Tool, e
271273
}
272274

273275
func (m *Manager) GetContext(ctx context.Context, tool types.Tool, cmd, env []string) (string, []string, error) {
276+
if strings.HasPrefix(tool.WorkingDir, m.systemDir) {
277+
return tool.WorkingDir, env, nil
278+
}
279+
274280
var isLocal bool
275281
if tool.Source.Repo == nil {
276282
isLocal = true

0 commit comments

Comments
 (0)