Skip to content

@latest not working in pkgx.yaml #797

@svenjacobs

Description

@svenjacobs

While I can use

❯ pkgx firebase@latest --version
12.6.2

when I declare my dependencies in pkgx.yaml like this

dependencies:
    node@18 firebase@latest

I get the following error

× unexpected error invalid semver range: @latest
│ Error: invalid semver range: @latest
│     at err (https://deno.land/x/libpkgx@v0.14.1/src/utils/semver.ts:120:23)
│     at new Range (https://deno.land/x/libpkgx@v0.14.1/src/utils/semver.ts:209:49)
│     at parse (https://deno.land/x/libpkgx@v0.14.1/src/utils/pkg.ts:8:22)
│     at Array.map (<anonymous>)
│     at parse_deps (file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/utils/devenv.ts:289:34)
│     at extract_well_formatted_entries (file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/utils/devenv.ts:279:22)
│     at parse_well_formatted_node (file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/utils/devenv.ts:250:24)
│     at default (file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/utils/devenv.ts:102:17)
│     at eventLoopTick (ext:core/01_core.js:183:11)
│     at async default (file:///Users/builder/actions-runner/_work/pkgx/pkgx/src/modes/internal.activate.ts:16:34)
╰─➤ https://github.com/pkgxdev/pkgx/issues/new

when changing into the directory.

Metadata

Metadata

Assignees

No one assigned

    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