gop icon indicating copy to clipboard operation
gop copied to clipboard

the imported package disappears after call `gop clean`

Open gamesky opened this issue 7 months ago • 2 comments

The following program sample.gop triggers an unexpected result

// add a sample
package main

import (
	"github.com/caarlos0/env/v11"
)
func main(){

}

//output
gop clean
gop run sample.gop

Expected result

run it ok

Got

gop_autogen.go:7:2: missing go.sum entry for module providing package github.com/caarlos0/env/v11; to add:

Gop Version

1.4.6

Additional Notes

No response

gamesky avatar May 18 '25 02:05 gamesky

please run gop mod tidy first.

xushiwei avatar Aug 29 '25 00:08 xushiwei

ok ,it works, but perhaps dependencies should not be cleared by gop clean

gamesky avatar Oct 13 '25 07:10 gamesky