Skip to content

Commit

Permalink
Use new pantries (pkgxdev#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl authored Oct 24, 2022
1 parent 0b18f2c commit e81dfd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ that part; it’s going to *change the world*.
 


# tea/cli 0.9.0
# tea/cli 0.9.1

tea is a universal virtual‑environment manager:

Expand Down
8 changes: 4 additions & 4 deletions src/hooks/usePantry.git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ export async function install(): Promise<true | 'not-git' | 'noop' | 'deprecated
const env = flatten(preenv)

const pp: Promise<void>[] = []
for (const [remote, local] of [["pantry", "pantry.core"], ["pantry.extra", "pantry.extra"]]) {
for (const name of ["pantry.core", "pantry.extra"]) {
const p = run({
cmd: [
git, "clone",
"--bare", "--depth=1",
`https://github.com/teaxyz/${remote}`,
pantries_dir.join("teaxyz").mkpath().join(local)
`https://github.com/teaxyz/${name}`,
pantries_dir.join("teaxyz").mkpath().join(name)
],
env
})
Expand All @@ -93,7 +93,7 @@ export async function install(): Promise<true | 'not-git' | 'noop' | 'deprecated
//FIXME if we do this, we need to be able to convert it to a git installation later
//TODO use our tar if necessary
//TODO if we keep this then don’t store the files, just pipe to tar
for (const name of ["pantry", "pantry.extra"]) {
for (const name of ["pantry.core", "pantry.extra"]) {
const src = new URL(`https://github.com/teaxyz/${name}/archive/refs/heads/main.tar.gz`)
const tgz = await useDownload().download({ src })
const cwd = pantry_dir.mkpath()
Expand Down

0 comments on commit e81dfd0

Please sign in to comment.