New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run xo fails on windows os #387
Comments
how did you install xo and what is the exact command you are running? |
|
On further review it seems like there is an issue with the relative paths in Windows when it tries to import the packages for the templates in templates.go:409:
It's an issue in the yaegi interpreter, "github.com/traefik/yaegi/interp". Not sure how to fix it but will look into it. |
One thing I tried was to upgrade github.com/traefik/yaegi to v0.15.0 in the go.mod file since it advertises support for Windows. However that didn't work and resulted in the same issue. |
I just encountered this error as well, it looks like the imports are called with Windows path separators which means that the strings.HasPrefix call at templates.go:614 does not match. It can be fixed by calling filepath.ToSlash on name before doing the comparison. |
@pieter-lazzaro Thanks, I'll take a look at that. |
Fixed in PR #391 as suggested by @pieter-lazzaro. |
ENV info
Issue
The text was updated successfully, but these errors were encountered: