← Back to issue list

check if sources can use `go-use` plugin

View original Github issue

Metadata

Project
craft-parts
Number
#1061
Type
issue
State
open
Author
dariuszd21
Labels
Created
2025-04-07 11:51:13+00:00
Updated
2025-04-07 11:51:42+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done Check if directory is a proper go module before `go-use` plugin commands are run. Error out if it's not a correct project as it will fail anyway ### Why it needs to get done `go-use` plugin does not validate if the directory it is run against is a valid go module (not only the go project itself, but the one that have `go.mod` file). It would greatly improve user experience if plugin would error out, when run on incorrect sources instead of silently skip it.

Evaluation history

No evaluation history available.