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
4711d5b8
Unverified
Commit
4711d5b8
authored
Mar 16, 2018
by
Matthew Fisher
Committed by
GitHub
Mar 16, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3695 from bacongobbler/windows-path-issues
fix windows path issues on `helm template -x`
parents
a53f93c8
6de9ebcc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
template.go
cmd/helm/template.go
+3
-3
No files found.
cmd/helm/template.go
View file @
4711d5b8
...
...
@@ -122,7 +122,7 @@ func (t *templateCmd) run(cmd *cobra.Command, args []string) error {
if
len
(
t
.
renderFiles
)
>
0
{
for
_
,
f
:=
range
t
.
renderFiles
{
if
!
filepath
.
IsAbs
(
f
)
{
af
,
err
=
filepath
.
Abs
(
t
.
chartPath
+
"/"
+
f
)
af
,
err
=
filepath
.
Abs
(
filepath
.
Join
(
t
.
chartPath
,
f
)
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"could not resolve template path: %s"
,
err
)
}
...
...
@@ -232,9 +232,9 @@ func (t *templateCmd) run(cmd *cobra.Command, args []string) error {
}
in
:=
func
(
needle
string
,
haystack
[]
string
)
bool
{
// make needle path absolute
d
:=
strings
.
Split
(
needle
,
"/"
)
d
:=
strings
.
Split
(
needle
,
string
(
os
.
PathSeparator
)
)
dd
:=
d
[
1
:
]
an
:=
t
.
chartPath
+
"/"
+
strings
.
Join
(
dd
,
"/"
)
an
:=
filepath
.
Join
(
t
.
chartPath
,
strings
.
Join
(
dd
,
string
(
os
.
PathSeparator
))
)
for
_
,
h
:=
range
haystack
{
if
h
==
an
{
...
...
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