haskell.nix icon indicating copy to clipboard operation
haskell.nix copied to clipboard

Add IOG nix cache in flake configuration

Open yvan-sraka opened this issue 2 years ago • 3 comments

From https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html#flake-format

nixConfig: a set of nix.conf options to be set when evaluating any part of a flake. In the interests of security, only a small set of whitelisted options (currently bash-prompt, bash-prompt-prefix, bash-prompt-suffix, and flake-registry) are allowed to be set without confirmation so long as accept-flake-config is not set in the global configuration.

yvan-sraka avatar Aug 08 '22 08:08 yvan-sraka

bors try

yvan-sraka avatar Aug 08 '22 12:08 yvan-sraka

try

Timed out.

iohk-bors[bot] avatar Aug 09 '22 01:08 iohk-bors[bot]

The issue here is that interactive user confirmation of using IOG cache currently stuck the CI … solutions could be to:

  • add IOG cache to global Nix configuration of CI (if such thing possible?)
  • tweak CI scripts to pass the desired interactive input (or find the Nix non-interactive CLI option)

yvan-sraka avatar Aug 10 '22 07:08 yvan-sraka

bors try

yvan-sraka avatar Aug 26 '22 09:08 yvan-sraka

It looks like this has broken one of the old build kite tests that was actually using the flake. It now asks for input from user.

See https://buildkite.com/input-output-hk/haskell-dot-nix/builds/7008#0182d985-68d6-4650-a955-8975b87c9ae8

hamishmack avatar Aug 26 '22 11:08 hamishmack

bors try-

hamishmack avatar Aug 26 '22 11:08 hamishmack

I could add the same local nix.conf hack to another shell script or give a try to:

yes | nix build .#roots.x86_64-linux --option allow-import-from-derivation false

yvan-sraka avatar Aug 26 '22 12:08 yvan-sraka

bors try

hamishmack avatar Aug 26 '22 13:08 hamishmack

bors try-

hamishmack avatar Aug 26 '22 13:08 hamishmack

bors try

hamishmack avatar Aug 26 '22 13:08 hamishmack

bors try

hamishmack avatar Aug 26 '22 13:08 hamishmack

try

Already running a review

iohk-bors[bot] avatar Aug 26 '22 13:08 iohk-bors[bot]

bors try-

hamishmack avatar Aug 26 '22 13:08 hamishmack

bors try

hamishmack avatar Aug 26 '22 13:08 hamishmack

bors try

hamishmack avatar Aug 26 '22 13:08 hamishmack

try

Already running a review

iohk-bors[bot] avatar Aug 26 '22 13:08 iohk-bors[bot]

bors try-

hamishmack avatar Aug 26 '22 13:08 hamishmack

bors try

hamishmack avatar Aug 26 '22 13:08 hamishmack

bors try-

hamishmack avatar Aug 26 '22 13:08 hamishmack

bors try-

hamishmack avatar Aug 26 '22 13:08 hamishmack

bors try

hamishmack avatar Aug 26 '22 13:08 hamishmack

Oh it started #1601.

hamishmack avatar Aug 26 '22 13:08 hamishmack