Skip to content

More explicit package spec resolution - #114

Draft
saecki wants to merge 3 commits into
targetsfrom
workspace
Draft

saecki wants to merge 3 commits into
targetsfrom
workspace

Conversation

@saecki

@saecki saecki commented Nov 27, 2026

Copy link
Copy Markdown
Member

Closes #102

  1. This fixes a few inconsistencies with how the exclude was handled and also makes the world aware of ignored files.

  2. It also changes how the Workspace is set up:

  • Don't search for packages relative to the checked package
    • This required the packages to be in a preview/<name>/<version> directory
  • Make the typst/packages repo optional
  • Change how the path of the typst/packages repo is determined.
    • Read TYPST_PACKAGES_REPO instead PACKAGES_DIR environment variable
    • Don't fall back to GITHUB_WORKSPACE in check command
  • Add CLI options for search locations and system fonts
    • --packages-repo to specify the location of the typst/packages repository
    • --package-path and --package-cache-path analogous to typst-cli
      • Special value unset can be used to not search them at all
    • --ignore-system-fonts analogous to typst-cli
  1. One more thing I'd like to get rid of is the dotenvy::dotenv() call. I don't think that is currently used by us. And I want to remove as much implicit behavior, to make the package-check work in a predictable way by default. I'd also be fine with adding a --dot-env flag or similar, if you think that would pulls its weight.

@saecki
saecki added this pull request to stack #112 November 27, 2026 12:26
- Don't search for packages relative to the checked package
    - This required the packages to be in a `preview/<name>/<version>` directory
- Make the `typst/packages` repo optional
- Change how the path of the `typst/packages` repo is determined.
    - Read `TYPST_PACKAGES_REPO` instead `PACKAGES_DIR` environment variable
    - Don't fall back to `GITHUB_WORKSPACE` in `check` command
- Add CLI options for search locations and system fonts
    - `--packages-repo` to specify the location of the `typst/packages` repository
    - `--package-path` and `--package-cache-path` analogous to `typst-cli`
        - Special value `unset` can be used to not search them at all
    - `--ignore-system-fonts` analogous to `typst-cli`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the package check world aware of ignored files

1 participant