gop
gop copied to clipboard
the imported package disappears after call `gop clean`
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
please run gop mod tidy first.
ok ,it works, but perhaps dependencies should not be cleared by gop clean