gptscript icon indicating copy to clipboard operation
gptscript copied to clipboard

Getting a panic error when attempting to use the runner as a library

Open hectorj2f opened this issue 1 year ago • 0 comments

I am not sure if this is intentional but I've tried to use gptscript as a library to run my scripts and I always get the following error:

panic: runtime error: slice bounds out of range [:-1]

goroutine 1 [running]:
github.com/gptscript-ai/gptscript/pkg/mvl.Package()
	/Users/hectorfernandez/go/pkg/mod/github.com/gptscript-ai/[email protected]/pkg/mvl/log.go:51 +0x108
github.com/gptscript-ai/gptscript/pkg/builtin.init()
	/Users/hectorfernandez/go/pkg/mod/github.com/gptscript-ai/[email protected]/pkg/builtin/log.go:5 +0x24
FAIL	github.com/chainguard-dev/infra-images/wolfi-bump/pkg/gptscript/gptscript	0.287s

hectorj2f avatar Feb 21 '24 18:02 hectorj2f