Skip to content

generate subcommand only accounts for author's OS with only_os #88

Open
@TUSF

Description

In my zigmod.yml, I have:

dependencies:
  - {
    src: git https://github.com/marlersoft/zigwin32,
    only_os: windows
  }
  - {
    src: system_lib dwrite,
    only_os: windows
  }

This works well enough when using the fetch subcommand, but if I use the generate subcommand, the generated deps.zig file will assume whoever is building the package is on the same OS as whoever ran zigmod generate.

This makes generate no different from fetch for libraries depending on OS-specific libraries & APIs.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions