grafana / k6build

K6 build service
GNU Affero General Public License v3.0
2 stars 1 forks source link

Add function for checking dependency resolution #28

Open pablochacin opened 2 months ago

pablochacin commented 2 months ago

In some cases, before building a custom binary, it would be convenient to check the resolution of the dependencies and return only this information, without attempting to build the binary.

// Resolve returns the resolution of the dependencies as a map of dependency: version
Resolve(ctx context.Context, k6Constrains string, deps []Dependency) (map[string]string, error)