-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
Description
The Automatic dependency resolution supports the definition of dependency pragmas that define version constraints for the dependencies. The format is use k6 with <dependency>< constraints>
Currently, k6 parses this pragma only if the constraints are separated by a space from the dependency name:
"use k6 with k6/x/faker =v0.4.4"; ✔️
"use k6 with k6/x/faker=v0.4.4"; ❌
For example, running this script:
"use k6 with k6/x/faker=v0.4.0";
import faker from "k6/x/faker";
export default function () {
console.log(faker.person.name());
}Produces the following error:
ERRO[0000] Failed to provision a k6 binary with required dependencies. Please, make sure to report this issue by opening a bug report. error="invalid build parameters: unknown dependency : k6/x/faker=v0.4.0"