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
53432c2c
Commit
53432c2c
authored
May 20, 2016
by
Matt Butcher
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #736 from technosophos/fix/672-package-output
fix(helm): fix output of helm package command
parents
423d44d5
f483264e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
package.go
cmd/helm/package.go
+12
-8
local.go
pkg/repo/local.go
+1
-2
No files found.
cmd/helm/package.go
View file @
53432c2c
...
...
@@ -54,21 +54,25 @@ func runPackage(cmd *cobra.Command, args []string) error {
return
err
}
// Save to $HELM_HOME/local directory.
if
save
{
if
err
:=
repo
.
AddChartToLocalRepo
(
ch
,
localRepoDirectory
());
err
!=
nil
{
return
err
}
}
// Save to the current working directory.
cwd
,
err
:=
os
.
Getwd
()
if
err
!=
nil
{
return
err
}
name
,
err
:=
chart
.
Save
(
ch
,
cwd
)
if
err
==
nil
{
if
err
==
nil
&&
flagVerbose
{
cmd
.
Printf
(
"Saved %s to current directory
\n
"
,
name
)
}
// Save to $HELM_HOME/local directory. This is second, because we don't want
// the case where we saved here, but didn't save to the default destination.
if
save
{
if
err
:=
repo
.
AddChartToLocalRepo
(
ch
,
localRepoDirectory
());
err
!=
nil
{
return
err
}
else
if
flagVerbose
{
cmd
.
Printf
(
"Saved %s to %s
\n
"
,
name
,
localRepoDirectory
())
}
}
return
err
}
pkg/repo/local.go
View file @
53432c2c
...
...
@@ -43,7 +43,7 @@ func serveFile(w http.ResponseWriter, r *http.Request, file string) {
// AddChartToLocalRepo saves a chart in the given path and then reindexes the index file
func
AddChartToLocalRepo
(
ch
*
chart
.
Chart
,
path
string
)
error
{
name
,
err
:=
chart
.
Save
(
ch
,
path
)
_
,
err
:=
chart
.
Save
(
ch
,
path
)
if
err
!=
nil
{
return
err
}
...
...
@@ -51,7 +51,6 @@ func AddChartToLocalRepo(ch *chart.Chart, path string) error {
if
err
!=
nil
{
return
err
}
fmt
.
Printf
(
"Saved %s to $HELM_HOME/local"
,
name
)
return
nil
}
...
...
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