pkgx icon indicating copy to clipboard operation
pkgx copied to clipboard

`semver.ts` needs tweaks for "short" versions

Open jhheider opened this issue 3 years ago • 5 comments

https://github.com/teaxyz/pantry/pull/1863

looks like https://github.com/teaxyz/brewkit/pull/106 needs support in teaxyz/cli:semver.ts. specifically, around https://github.com/teaxyz/cli/blob/31c2fc0bbddc41cbd63d9ee14593efe3f9b09301/src/utils/semver.ts#L29

jhheider avatar May 07 '23 20:05 jhheider

What is the problem exactly? I went to the pantry ticket and couldn't figure out what is wrong or what you are asking for

mxcl avatar May 08 '23 19:05 mxcl

% tea +github.com/tmux/tmux=3.3a tmux
resolving package graph
error: http (spilt-tea-500)
too short to parse without a `v` prefix: 3.3a

Interestingly, ijg.org works fine:

% tea +ijg.org=9e sh
this is a temporary shell containing the following packages:
deno.land=1.33.2, gnu.org/bash=5.2.15, tea.xyz=0.31.2, ijg.org=9e, tea.xyz/brewkit=0.27.2
when done type: `exit'
tea ~/tea/pantry 

jhheider avatar May 08 '23 20:05 jhheider

ah, nope:

% rm -rf ~/.tea/ijg.org ~/.tea/tea.xyz/var/www/ijg.org-9*
% tea +ijg.org sh
resolving package graph
error: http (spilt-tea-500)
too short to parse without a `v` prefix: 9e

jhheider avatar May 08 '23 21:05 jhheider

Interestingly, ijg.org works fine:

When the package was built in local, it looks like that this problem doesn't occur.

uesyn avatar May 09 '23 06:05 uesyn

aah ok

mxcl avatar May 09 '23 17:05 mxcl