traefik / yaegi

Yaegi is Another Elegant Go Interpreter
https://pkg.go.dev/github.com/traefik/yaegi
Apache License 2.0
6.82k stars 342 forks source link

extract: escape ~ in package names #1533

Closed sentriz closed 1 year ago

sentriz commented 1 year ago

consider packages from git.sr.ht, the user namespace is prefixed with ~

so running something like yaegi extract git.sr.ht/~emersion/scfg

was producing syntax errors with ~ in identifiers. and also ~ in filenames which worked but probably best not to have it there either

thanks!

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

ldez commented 1 year ago

Hello, can you sign the CLA? Thank you.

sentriz commented 1 year ago

:+1: