Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
74653d37
Unverified
Commit
74653d37
authored
5 years ago
by
Matthew Fisher
Browse files
Options
Download
Patches
Plain Diff
fix: return more information to the user
Signed-off-by:
Matthew Fisher
<
matt.fisher@microsoft.com
>
parent
a31d4ad4
release-2.17
dev-v2
release-2.15
release-2.16
v2.17.0
v2.17.0-rc.1
v2.16.12
v2.16.11
v2.16.10
v2.16.9
v2.16.8
v2.16.7
v2.16.6
v2.16.5
v2.16.4
v2.16.3
v2.16.2
v2.16.1
v2.16.0
v2.16.0-rc.2
v2.16.0-rc.1
v2.15.2
v2.15.1
v2.15.0
v2.15.0-rc.2
v2.15.0-rc.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/downloader/manager.go
+4
-3
pkg/downloader/manager.go
with
4 additions
and
3 deletions
+4
-3
pkg/downloader/manager.go
+
4
−
3
View file @
74653d37
...
...
@@ -218,10 +218,11 @@ func (m *Manager) downloadAll(deps []*chartutil.Dependency) error {
for
_
,
dep
:=
range
deps
{
// No repository means the chart is in charts directory
if
dep
.
Repository
==
""
{
fmt
.
Fprintf
(
m
.
Out
,
"Dependency %s did not declare a repository. Assuming it exists in the charts directory
\n
"
,
dep
.
Name
)
chartPath
:=
filepath
.
Join
(
tmpPath
,
dep
.
Name
)
ch
,
err
:=
chartutil
.
LoadDir
(
chartPath
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"Unable to load
local
chart: %v"
,
err
)
return
fmt
.
Errorf
(
"Unable to load chart: %v"
,
err
)
}
constraint
,
err
:=
semver
.
NewConstraint
(
dep
.
Version
)
...
...
@@ -231,11 +232,11 @@ func (m *Manager) downloadAll(deps []*chartutil.Dependency) error {
v
,
err
:=
semver
.
NewVersion
(
ch
.
Metadata
.
Version
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"
Chart %s has an invalid version format: %s"
,
dep
.
Name
,
err
)
return
fmt
.
Errorf
(
"
Invalid version %s for dependency %s: %s"
,
dep
.
Version
,
dep
.
Name
,
err
)
}
if
!
constraint
.
Check
(
v
)
{
saveError
=
fmt
.
Errorf
(
"
Can't get a valid version for dependency %s"
,
dep
.
Name
)
saveError
=
fmt
.
Errorf
(
"
Dependency %s at version %s does not satisfy the constraint %s"
,
dep
.
Name
,
ch
.
Metadata
.
Version
,
dep
.
Version
)
break
}
continue
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets