!zghijEASpYQWYFzriI:nixos.org

Hydra

351 Members
97 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
20 Sep 2024
@cleverca22:matrix.orgcleverca22
In reply to @janne.hess:helsinki-systems.de
That's valid in Perl 🤡
is it still valid in the latest version? has something changed?
what does the error mean exactly? why is it treating the secret key as a module?
09:17:48
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dereadFile is only in the c++ codebase09:49:04
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de

for reading a file, you would use:

use File::Slurper qw(read_text);
# …
read_text($secretKeyFile);
09:50:00
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de *

for reading a file in the perl codebase, you would use:

use File::Slurper qw(read_text);
# …
read_text($secretKeyFile);
09:50:09
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de *

for reading a file in the perl codebase, you would use:

use File::Slurper qw(read_text);
# …
my $secretKey = read_text($secretKeyFile);
09:50:31
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI assume something went wrong here: https://github.com/NixOS/hydra/commit/b94a7b6d5c56362af9ea85d944f8454d861ec00109:52:18
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deBut there is no reason to use the nix function rather than the perl way of life09:52:29
@joerg:thalheim.ioMic92 cleverca22: https://github.com/NixOS/hydra/pull/1413 09:53:13
@cleverca22:matrix.orgcleverca22
In reply to @joerg:thalheim.io
cleverca22: https://github.com/NixOS/hydra/pull/1413
CI tests fail, still deploying on my end
10:04:02
@cleverca22:matrix.orgcleverca22 ( STDERR ) job 69 Can't locate File/Slurp.pm in @INC (you may need to install the File::Slurp module) 10:04:26
@joerg:thalheim.ioMic92 cleverca22: indeed John just imagined this function... It's also present in c++ 10:05:30
@joerg:thalheim.ioMic92in the nix code base10:05:33
@cleverca22:matrix.orgcleverca22https://github.com/NixOS/nix/blob/master/src/perl/lib/Nix/Utils.pm#L710:10:45
@cleverca22:matrix.orgcleverca22hmmm, readFile is part of Nix::Utils?10:11:09
@cleverca22:matrix.orgcleverca22oh, and narinfo doesnt import that now!?10:11:20
@cleverca22:matrix.orgcleverca22bingo, that got removed in a recent commit10:11:44
@joerg:thalheim.ioMic92 cleverca22: https://github.com/NixOS/hydra/pull/1413/files#diff-99bd8eee901b9b16f07b535be184e0d630739e79cb8678b8465e82ed54f2543aR42 10:14:28
@cleverca22:matrix.orgcleverca22yeah, thats a more portable solution10:14:54

Show newer messages


Back to Room ListRoom Version: 6