msolimans/generator-sls

Golang generator assumes *nix path format

Closed this issue · 0 comments

The Golang generator uses a pathhelper which assumes the user is on a Unix-based system:

https://github.com/msolimans/generator-sls/blob/master/common/paths.js

It is only used in one place.

I'm not really sure why this pathhelper is here instead of the build-in node path module. It has nearly the same API as path, but I see no evidence in the git history that it was swapped to in favor of path.

(FYI, your article is really helping me get started with Go. I'm sure I'll run into other Windows-problems, but its a very helpful start)