Better warnings for empty hashes: state where it is from! #615
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#615
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently Lix will output a warning like so when given an empty hash from some kind of fixed-output thing.
This is from this code:
https://git.lix.systems/lix-project/lix/src/b0d7a816135de1cd551b8a54f5497148bf59d81d/lix/libutil/hash.cc#L264-L275
This is used by
builtins.fetchTree
(and by extensionbuiltins.fetchTarball
) and thebuiltin:fetchurl
builtin derivation builder (which could say something about what was being fetched) as well as by fixed-output derivations at eval time viabuiltins.derivation
(which could at the very least outputname
and maybe aurl
property if present, like we do currently for hash mismatches).For the builtins and especially
builtins.derivation
, this should really be an evaluation warning that can trigger the debugger (for which we need a system, but see #614). For the builtin builder, nearly nobody uses that thing so whatever, and the warning comes from the store so it's not going to be super easy to get rich debug info out of it regardless.