moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
10.38k stars 546 forks source link

panic: invalid path: 'css/bootstrap.min.css' #458

Closed poka-IT closed 9 months ago

poka-IT commented 9 months ago

I use go1.20

When use this command:

go run brig.go

from develop, I got this error

panic: invalid path: 'css/bootstrap.min.css'

goroutine 1 [running]:
github.com/phogolabs/parcello.AddResource({0xc0007ca000, 0x155ab9, 0x155ab9})
    /home/test/go/pkg/mod/github.com/phogolabs/parcello@v0.8.2/manager.go:53 +0xef
github.com/sahib/brig/gateway/static.init.0()
    /home/test/Bureau/brig/gateway/static/resource.go:9 +0x65
exit status 2
chungyan5 commented 1 week ago

hi poka-IT,

Any solution for this issue? i am a newbie as I am trying to compile and run brig, it comes out this error exactly same to you. Pls give me some hints how to resolve this issue.

chungyan5 commented 1 week ago

hi Poka-IT,

i find your issue, then i get your latest code to compile, it works now. Thanks your code.

chungyan5 commented 1 week ago

hi Poka-IT,

I wonder how you get it works, i try the steps as"

no error and have a outcome of resource.go, but staill same error, "panic: invalid path: 'css/bootstrap.min.css'"

chungyan5 commented 1 week ago

Finally, i can compiled and work now.

The actions is: i go down the Go version from 1.23(latest) to ~3 yrs old, "go version go1.16.10 linux/amd64", then everything works now.