Skip to content

Nix 2.18 lock issues #88

Closed
Closed

Description

@kip93

After updating nix on my machine and running nix flake update, the lock now has a new lastModified attribute for tarballs that this action does not like.

Can reproduce locally. Doing nix run nix/2.18.0 -- flake show works, while nix run nix/2.17.0 -- flake show throws the same error.

Error

Error: 
   0: Checking flake evaluates
   1: Failed to execute command `nix flake show --all-systems --json --no-write-lock-file /home/runner/work/nixplusplus/nixplusplus/` with status 1 
      stdout: 
      stderr: 
�[K
�[Kerror:
             … while updating the lock file of flake 'git+file:///home/runner/work/nixplusplus/nixplusplus?ref=refs/heads/main&rev=1545dbfa321f944874eb02262fb5214a30a292e7&shallow=1'

             error: unsupported tarball input attribute 'lastModified'


Metadata

key value
version 0.1.0
os linux
arch x86_64

SpanTrace

Details
SpanTrace:
   0: flakehub_push::flake_info::check_flake_evaluates
           with directory=/home/runner/work/nixplusplus/nixplusplus/
             at src/flake_info.rs:54
   1: flakehub_push::cli::push_new_release
           with repository=kip93/nixplusplus mirror=false upload_name=kip93/npp
             at src/cli/mod.rs:466
   2: flakehub_push::cli::flakehub_push
             at src/cli/mod.rs:254

Activity

  1. cole-h commented on Oct 20, 2023

    @cole-h
    Member

    I think most common Nix versions in use have had the lastModified backport applied to them now (2.17.1 doesn't have the problem, nor do 2.16.2 or 2.15.3). See if you can upgrade your Nix to those patched versions!

  2. added a commit that references this issue on Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions