Skip to content

Commit

Permalink
Merge pull request #1155 from ripienaar/generate_windows
Browse files Browse the repository at this point in the history
Fix server generate on windows when using fs paths
  • Loading branch information
ripienaar authored Sep 17, 2024
2 parents 29a66eb + 499bee6 commit 0fc79e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/scaffold/scaffold.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ func FromFile(file string) (*Bundle, error) {
// FromUrl reads a bundle from a http(s) URL
func FromUrl(url *url.URL) (*Bundle, error) {
if url.Scheme == "fs" {
return FromFs(Store, filepath.Join("store", url.Path))
// fs requires unix paths even on windows
return FromFs(Store, strings.ReplaceAll(filepath.Join("store", url.Path), `\`, `/`))
}

res, err := http.Get(url.String())
Expand Down

0 comments on commit 0fc79e7

Please sign in to comment.