File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ export default async () => {
11
11
if ( process . platform === "win32" ) {
12
12
throw new Error ( "Flox is not supported on Windows" ) ;
13
13
}
14
+ // verify that nix is installed
15
+ const { exitCode } = await getExecOutput ( "nix" , [ "--version" ] ) ;
16
+ if ( exitCode !== 0 ) {
17
+ throw new Error ( "Nix is not installed, please install it first, see https://github.com/DeterminateSystems/nix-installer-action" ) ;
18
+ }
14
19
const cacheKey = `floxcache-${ process . platform } -${ process . arch } ` ;
15
20
const cacheEnabled = cache . isFeatureAvailable ( ) ;
16
21
let cacheHit = false ;
Original file line number Diff line number Diff line change @@ -16,6 +16,13 @@ export default async (): Promise<{
16
16
if ( process . platform === "win32" ) {
17
17
throw new Error ( "Flox is not supported on Windows" ) ;
18
18
}
19
+ // verify that nix is installed
20
+ const { exitCode } = await getExecOutput ( "nix" , [ "--version" ] ) ;
21
+ if ( exitCode !== 0 ) {
22
+ throw new Error (
23
+ "Nix is not installed, please install it first, see https://github.com/DeterminateSystems/nix-installer-action"
24
+ ) ;
25
+ }
19
26
const cacheKey = `floxcache-${ process . platform } -${ process . arch } ` ;
20
27
const cacheEnabled = cache . isFeatureAvailable ( ) ;
21
28
let cacheHit = false ;
You can’t perform that action at this time.
0 commit comments