Skip to content

Commit

Permalink
Recreate error with full windows path
Browse files Browse the repository at this point in the history
  • Loading branch information
cari-lynn committed Feb 18, 2022
1 parent c43dcf0 commit 44edd23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/integrating-with-ytt/internal-templating/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func templatesAsInput(tpl... string) (yttcmd.Input, error) {
for i, t := range tpl {
// to make this less brittle, you'll probably want to use well-defined names for `path`, here, for each input.
// this matters when you're processing errors which report based on these paths.
file, err := yttfiles.NewFileFromSource(yttfiles.NewBytesSource(fmt.Sprintf("tpl%d.yml", i), []byte(t)))
file, err := yttfiles.NewFileFromSource(yttfiles.NewBytesSource(fmt.Sprintf("C:\\Users\\user\\Desktop\\tpl%d.yml", i), []byte(t)))
if err != nil {
return yttcmd.Input{}, err
}
Expand Down
2 changes: 2 additions & 0 deletions hack/test-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ ytt version

# We only care about exit code
ytt -f examples\load-paths

( cd examples/integrating-with-ytt/internal-templating && go test ./... )

0 comments on commit 44edd23

Please sign in to comment.