Skip to content
This repository was archived by the owner on Oct 8, 2020. It is now read-only.

fix: fix path handling error on windows - #80

Open
tkak wants to merge 1 commit into
hashicorp:masterfrom
tkak:fix-subdirectory-handling-windows
Open

tkak wants to merge 1 commit into
hashicorp:masterfrom
tkak:fix-subdirectory-handling-windows

Conversation

@tkak

@tkak tkak commented Apr 5, 2020

Copy link
Copy Markdown

On windows, template_dir resource is not working correctly when it handles subdirectories like

Error: open output/dir\foo.txt: The system cannot find the path specified.

I replaced path package with path/filepath package to fix the issue.

References: https://stackoverflow.com/questions/39181790/whats-the-difference-between-path-path-filepath-packages-in-go

This PR fixes #73

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

template_dir can't handle subdirectories correctly on windows: open <filename>: The system cannot find the path specified.

1 participant