Skip to content

Cog throws "unknown flag: --load" error when buildx isn't installed #1713

Description

@jessie-young

When buildx isn't installed, running cog commands such as cog predict throws an error unknown flag --load.

Either have cog output a more user-friendly error, or there might be some other fix. Thread from slack:

Thread, for context:
sylvie
maybe we could introspect to find out if buildx is installed

marcus
26 minutes ago
I think just checking for docker buildx version should be enough

sylvie
25 minutes ago
I don't think we used to require it to be installed, though I'm not sure if RUN --mount is a thing outside buildx

jessie.young
19 minutes ago
@sylvie
i manually checked using docker builedx version to see if it was installed after i installed docker, and it wasn’t

sylvie
18 minutes ago
I mean, before we added --load to deal with the GHA thing, I don't believe buildx was required

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions