Skip to content

error: (project) name must be a valid bare zig identifier during zig-fetch #1

@sivaplaysmC

Description

@sivaplaysmC

Arises when running

zig fetch --save https://github.com/theseyan/mpack-zig/archive/refs/tags/v0.2.1.tar.gz

The error message suggests a fix:

/home/---------/.cache/zig/tmp/09b3e4242a92913c/mpack-zig-0.2.1/build.zig.zon:2:13: error: name must be a valid bare zig identifier (hint: switch from string to enum literal)
    .name = "mpack-zig",

"Switch to an enum literal"

For now, I'm going to use a fork of this repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions