-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to use a package locally if not yet merged in pantry? #427
Comments
Run |
This isn't really a bug, there literally is no pantry in your I understand the pain. Perhaps I will come up with something that eases this. For now you can do: TEA_DIR=~/pantry.extra tea git3 --help I will leave it as an exercise for the reader on why this works. |
Ok, I understand why it works from the So setting these env variables, I expect it to work anywhere else $ cd ~
$ TEA_PANTRY_PATH=/Users/mfts/dev/tea/pantry.extra tea git3 --help
resolving package graph
error: http (spilt-tea-500)
403: https://dist.tea.xyz/git3.sh/darwin/aarch64/versions.txt
$ TEA_DIR=/Users/mfts/dev/tea/pantry.extra tea git3 --help
tea: command not found: git3 I also tried it with both $ TEA_PANTRY_PATH=/Users/mfts/dev/tea/pantry.extra TEA_PREFIX=/Users/mfts/dev/tea/pantry.extra/tea.out tea git3 --help
resolving package graph
error: not found in pantry: nodejs.org (spilt-tea-005)
did you mean `nmap.org`? otherwise… see you on GitHub?
Not in pantry: nodejs.org
https://github.com/teaxyz/pantry.extra#contributing
SolutionSetting the pantry env variable to both $ TEA_PANTRY_PATH=/Users/mfts/dev/tea/pantry.extra:/Users/mfts/.tea/tea.xyz/var/pantry TEA_PREFIX=/Users/mfts/dev/tea/pantry.extra/tea.out tea git3 --help
Usage: git3 [options] [command]
git3 mangement tool |
Setting @mfts you'll find that your solution is setting the same vars as the dev-env does. |
Quite possibly setting an alternative |
Seems like it $ TEA_DIR=/Users/mfts/dev/tea/pantry.extra tea git3 --help
resolving package graph
error: http (spilt-tea-500)
403: https://dist.tea.xyz/git3.sh/darwin/aarch64/versions.txt
Yes, I copied the |
K I know why setting $ TEA_DIR=/Users/mfts/dev/tea/pantry.extra tea tea git3 --help
# ^^ probably works lol |
Unfortunately, same error $ TEA_DIR=/Users/mfts/dev/tea/pantry.extra tea tea git3 --help
resolving package graph
error: http (spilt-tea-500)
403: https://dist.tea.xyz/git3.sh/darwin/aarch64/versions.txt |
Fixes pkgxdev/pkgx#427 We build to TEA_PREFIX by default in pantry dev-envs now. You can still override this if you want. `TEA_PANTRY_PATH=foo tea bar` will now use
New brewkit and pantries (not all released), installs everything to your standard TEA_PREFIX with builds in the pantry checkout. This means Which is only marginally better, but it is a solution to this anyway. Potentially we could edit: or possibly this is the right solution since otherwise why are we installing to |
Fixes pkgxdev/pkgx#427 We build to TEA_PREFIX by default in pantry dev-envs now. You can still override this if you want. `TEA_PANTRY_PATH=foo tea bar` will now use
* Don’t set TEA_PREFIX Fixes pkgxdev/pkgx#427 We build to TEA_PREFIX by default in pantry dev-envs now. You can still override this if you want. `TEA_PANTRY_PATH=foo tea bar` will now use * wip
I had a discussion with @ddobrinskiy about testing / using a package locally that was built locally with
pkg
but not yet merged in the global pantry.For example
git3.sh
Expectation
I expect that if I change the
TEA_PREFIX
to something where the package + binary already exists locally, it would work.Interesting observation on what works:
The text was updated successfully, but these errors were encountered: