File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,6 @@ if (config.path.build.string.includes(" ")) {
5050 Deno.exit(1)
5151}
5252
53- if (!await hooks.usePantry().project(config.pkg.project).available()) {
54- console.warn("warn: project not available on this platform")
55- Deno.exit(2)
56- }
57-
5853const yml = YAML.parse(await config.path.yaml.read()) as any
5954
6055/// fetch
Original file line number Diff line number Diff line change @@ -36,6 +36,12 @@ export interface ConfigPath {
3636export default async function config ( arg ?: string ) : Promise < Config > {
3737 const { pkg, path, constraint } = await resolve_pkg ( arg )
3838
39+ //FIXME shouldn't be here, but fixing things properly is outside my time allotments nowadays
40+ if ( ! await hooks . usePantry ( ) . project ( pkg . project ) . available ( ) ) {
41+ console . warn ( "warn: project not available on this platform" )
42+ Deno . exit ( 2 )
43+ }
44+
3945 let pantry = path
4046 for ( let x = 0 , N = pkg . project . split ( '/' ) . length + 1 ; x < N ; x ++ ) {
4147 pantry = pantry . parent ( )
You can’t perform that action at this time.
0 commit comments