Skip to content

constraint.single() isn't preserving version.raw #202

@jhheider

Description

@jhheider

#196 (comment)

add console.info(pkg.version.raw) to brewkit/libexec/resolve.ts at line 17:

% ./libexec/resolve.ts zlib.net   
zlib.net=1.3.0
1.3

add console.info(version.raw) to brewkit/libexec/query.ts at line 44:

% ./libexec/query.ts zlib.net=1.3.0 --src

1.3.0

this was wreaking havoc with /pull/196 since it was testing generated distribution URLs (with HTTP HEAD requests), so calls to getDistributable() were failing. technically, they were always generating incorrect (but unused) URLs previously, and fetch.ts was using usePantry().resolve() which worked correctly. but this seems like a bug. right?

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