Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
59bb5aa1
Commit
59bb5aa1
authored
Mar 02, 2017
by
Michelle Noorali
Committed by
GitHub
Mar 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2028 from qwangrepos/issue-2020
local path repo verbose - issue #2020
parents
ba66af8c
0bef0007
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
dependency_update.go
cmd/helm/dependency_update.go
+3
-0
manager.go
pkg/downloader/manager.go
+8
-2
No files found.
cmd/helm/dependency_update.go
View file @
59bb5aa1
...
@@ -98,5 +98,8 @@ func (d *dependencyUpdateCmd) run() error {
...
@@ -98,5 +98,8 @@ func (d *dependencyUpdateCmd) run() error {
if
d
.
verify
{
if
d
.
verify
{
man
.
Verify
=
downloader
.
VerifyIfPossible
man
.
Verify
=
downloader
.
VerifyIfPossible
}
}
if
flagDebug
{
man
.
Debug
=
true
}
return
man
.
Update
()
return
man
.
Update
()
}
}
pkg/downloader/manager.go
View file @
59bb5aa1
...
@@ -51,6 +51,8 @@ type Manager struct {
...
@@ -51,6 +51,8 @@ type Manager struct {
HelmHome
helmpath
.
Home
HelmHome
helmpath
.
Home
// Verification indicates whether the chart should be verified.
// Verification indicates whether the chart should be verified.
Verify
VerificationStrategy
Verify
VerificationStrategy
// Debug is the global "--debug" flag
Debug
bool
// Keyring is the key ring file.
// Keyring is the key ring file.
Keyring
string
Keyring
string
// SkipUpdate indicates that the repository should not be updated first.
// SkipUpdate indicates that the repository should not be updated first.
...
@@ -213,7 +215,9 @@ func (m *Manager) downloadAll(deps []*chartutil.Dependency) error {
...
@@ -213,7 +215,9 @@ func (m *Manager) downloadAll(deps []*chartutil.Dependency) error {
}
}
if
strings
.
HasPrefix
(
dep
.
Repository
,
"file://"
)
{
if
strings
.
HasPrefix
(
dep
.
Repository
,
"file://"
)
{
fmt
.
Fprintf
(
m
.
Out
,
"Archiving %s from repo %s
\n
"
,
dep
.
Name
,
dep
.
Repository
)
if
m
.
Debug
{
fmt
.
Fprintf
(
m
.
Out
,
"Archiving %s from repo %s
\n
"
,
dep
.
Name
,
dep
.
Repository
)
}
ver
,
err
:=
tarFromLocalDir
(
m
.
ChartPath
,
dep
.
Name
,
dep
.
Repository
,
dep
.
Version
)
ver
,
err
:=
tarFromLocalDir
(
m
.
ChartPath
,
dep
.
Name
,
dep
.
Repository
,
dep
.
Version
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
@@ -335,7 +339,9 @@ func (m *Manager) getRepoNames(deps []*chartutil.Dependency) (map[string]string,
...
@@ -335,7 +339,9 @@ func (m *Manager) getRepoNames(deps []*chartutil.Dependency) (map[string]string,
return
nil
,
err
return
nil
,
err
}
}
fmt
.
Fprintf
(
m
.
Out
,
"Repository from local path: %s
\n
"
,
dd
.
Repository
)
if
m
.
Debug
{
fmt
.
Fprintf
(
m
.
Out
,
"Repository from local path: %s
\n
"
,
dd
.
Repository
)
}
reposMap
[
dd
.
Name
]
=
dd
.
Repository
reposMap
[
dd
.
Name
]
=
dd
.
Repository
continue
continue
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment