mirror of
https://github.com/hauler-dev/hauler.git
synced 2026-05-06 01:08:05 +00:00
fix for file:// dependency chart path resolutions (#510)
Signed-off-by: Eric Klatzer <eric@klatzer.at>
This commit is contained in:
@@ -520,8 +520,7 @@ func storeChart(ctx context.Context, s *store.Layout, cfg v1.Chart, opts *flags.
|
||||
var err error
|
||||
|
||||
if strings.HasPrefix(dep.Repository, "file://") {
|
||||
depPath := strings.TrimPrefix(dep.Repository, "file://")
|
||||
subchartPath := filepath.Join(chartPath, depPath)
|
||||
subchartPath := filepath.Join(chartPath, "charts", dep.Name)
|
||||
|
||||
depCfg = v1.Chart{Name: subchartPath, RepoURL: "", Version: ""}
|
||||
depOpts.ChartOpts.RepoURL = ""
|
||||
|
||||
BIN
testdata/chart-with-file-dependency-chart-1.0.0.tgz
vendored
Normal file
BIN
testdata/chart-with-file-dependency-chart-1.0.0.tgz
vendored
Normal file
Binary file not shown.
3
testdata/hauler-manifest-pipeline.yaml
vendored
3
testdata/hauler-manifest-pipeline.yaml
vendored
@@ -34,6 +34,9 @@ spec:
|
||||
version: 1.0.4
|
||||
- name: rancher-cluster-templates-0.5.2.tgz
|
||||
repoURL: testdata
|
||||
- name: chart-with-file-dependency-chart-1.0.0.tgz
|
||||
repoURL: testdata
|
||||
add-dependencies: true
|
||||
---
|
||||
apiVersion: content.hauler.cattle.io/v1
|
||||
kind: Files
|
||||
|
||||
Reference in New Issue
Block a user