Skip to content

Commit

Permalink
Fixes #275
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 17, 2024
1 parent 0325f7b commit 796a6ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions bin/cmd/build
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ if (config.path.build.string.includes(" ")) {
Deno.exit(1)
}

if (!await hooks.usePantry().project(config.pkg.project).available()) {
console.warn("warn: project not available on this platform")
Deno.exit(2)
}

const yml = YAML.parse(await config.path.yaml.read()) as any

/// fetch
Expand Down
6 changes: 6 additions & 0 deletions lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ export interface ConfigPath {
export default async function config(arg?: string): Promise<Config> {
const { pkg, path, constraint } = await resolve_pkg(arg)

//FIXME shouldn't be here, but fixing things properly is outside my time allotments nowadays
if (!await hooks.usePantry().project(pkg.project).available()) {
console.warn("warn: project not available on this platform")
Deno.exit(2)
}

let pantry = path
for (let x = 0, N = pkg.project.split('/').length + 1; x < N; x++) {
pantry = pantry.parent()
Expand Down

0 comments on commit 796a6ea

Please sign in to comment.