Skip to content

how to use a package locally if not yet merged in pantry? #427

@mfts

Description

@mfts

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

$ cd ~/pantry.extra
$ pkg build git3.sh
...
# builds binary successfully to tea.out/git3.sh

# open a new terminal in `cd $HOME`
$ TEA_PREFIX=~/pantry.extra/tea.out tea +git3.sh git3 --help
resolving package graph
error: not-found: pantry (spilt-tea-007)
no pantry: run `tea --sync`

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:

$ cd ~/pantry.extra
$ TEA_PREFIX=~/dev/tea/pantry.extra/tea.out tea +git3.sh git3 --help
Usage: git3 [options] [command]

git3 mangement tool
...

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