8 Aug 2024 |
dramforever | oh yeah sorry there's no way to know what the success side looks like 🤦 | 08:36:38 |
dramforever | In reply to @quapka4:matrix.org Just nix build '.?submodules=1' . how about nix eval --raw '.?submodules=1' on both sides | 08:37:11 |
quapka4 | In reply to @dramforever:matrix.org oh yeah sorry there's no way to know what the success side looks like 🤦 But I have the success side on my NixOS, right? | 08:37:12 |
dramforever | you wouldn't get the error message to check for logs if it succeeded 🤦 lol | 08:37:40 |
dramforever | In reply to @dramforever:matrix.org how about nix eval --raw '.?submodules=1' on both sides this should get you the path on both sides | 08:38:05 |
quapka4 | In reply to @dramforever:matrix.org this should get you the path on both sides It did. It's different, but I am on a different commit, so I'll redo that. | 08:39:02 |
quapka4 | I was working on something in parallel. | 08:39:21 |
quapka4 | Still different, but I have bunch of unversioned files in the NixOS, so I'll try completely fresh repo.. | 08:40:18 |
dramforever | try '.?rev=HEAD&submodules=1' | 08:40:47 |
quapka4 | On my NixOS
❯ nix eval --raw '.?rev=HEAD&submodules=1'
error: hash 'HEAD' has wrong length for hash type 'sha1'
| 08:43:40 |
quapka4 | I haven't upgraded from 23.11 yet. | 08:43:50 |
dramforever | sorry ref | 08:43:53 |
dramforever | not rev | 08:43:57 |
quapka4 | In reply to @dramforever:matrix.org not rev It worked for the nix-user-chroot Nix though :D | 08:44:38 |
quapka4 | The hashes are different. | 08:44:45 |
dramforever | on the same commit? interesting | 08:45:04 |
dramforever | rm -rf ~/.cache/nix/ perhaps, maybe the git cache was losing track | 08:45:37 |
quapka4 | In reply to @dramforever:matrix.org on the same commit? interesting Yes, afaict. | 08:46:03 |
dramforever | nix flake metadata '.?rev=HEAD&submodules=1' | 08:46:22 |
quapka4 | They do differ in Path: , but all Inputs: are the same. | 08:52:41 |
quapka4 | I get these two warnings on the Nix only machine:
warning: Ignoring setting 'auto-allocate-uids' because experimental feature 'auto-allocate-uids' is not enabled
warning: Ignoring setting 'impure-env' because experimental feature 'configurable-impure-env' is not enabled
| 08:55:02 |
dramforever | that should be irrelevant | 08:55:40 |
dramforever | is the "Locked URL" also the same? | 08:55:54 |
dramforever | i did find this with some people complaining about various issues with submodules=1 https://github.com/NixOS/nix/issues/6633 | 08:56:53 |
quapka4 | Well, not fully, because there is the filepath, the commit is the same, but not the ref:
?ref=HEAD&rev=c47d49f0d58162bdbb9456db07911469af01c313
ref=refs/heads/build-with-nix&rev=c47d49f0d58162bdbb9456db07911469af01c313
| 08:58:11 |
quapka4 | In reply to @dramforever:matrix.org i did find this with some people complaining about various issues with submodules=1 https://github.com/NixOS/nix/issues/6633 Interesting, but afaik the libgpg-error is not related to the submodules. | 08:58:47 |
dramforever | this could be relevant https://github.com/NixOS/nix/issues/6633#issuecomment-1479969742 | 08:59:02 |
dramforever | it's kinda while | 08:59:05 |
dramforever | * it's kinda wild | 08:59:08 |
dramforever | if it's not then there's no "it's some mismatch of channels or some version or something" problem and you need to start digging into the build process | 08:59:56 |