Skip to content
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

Using TrimLeft instead of TrimPrefix in fixPath method #2802

Open
GrosQuildu opened this issue Apr 18, 2023 · 0 comments
Open

Using TrimLeft instead of TrimPrefix in fixPath method #2802

GrosQuildu opened this issue Apr 18, 2023 · 0 comments

Comments

@GrosQuildu
Copy link

Description of the problem or steps to reproduce

The fixPath method is incorrect - uses TrimLeft instead of TrimPrefix, removing the "runtime/" cutset and not prefix.

micro/runtime/runtime.go

Lines 14 to 16 in 225927b

func fixPath(name string) string {
return strings.TrimLeft(filepath.ToSlash(name), "runtime/")
}

Seems like the bug is currently not triggerable. However, may break something in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant