fluidattacks / makes

A software supply chain framework powered by Nix.
https://makes.fluidattacks.tech/
MIT License
427 stars 42 forks source link

FileNotFoundError #1292

Closed dacevedo12 closed 4 months ago

dacevedo12 commented 6 months ago

When creating a file that is not yet committed, running a makes command results in the following error:

Preparing worktree (detached HEAD 7d959490d2)
Updating files: 100% (17945/17945), done.
HEAD is now at 7d959490d2 integrates-jira\feat(build): #11488 setup linting
/var/folders/_c/yvbg1vvj601875k2z3vkhd500000gq/T/makes-8zs3z4uo
Traceback (most recent call last):
  File "/nix/store/9ap9mzvmms45ihqb8hkpdyv8n7nsxfjy-src/src/cli/main/__main__.py", line 9, in <module>
    main(sys.argv)
  File "/nix/store/9ap9mzvmms45ihqb8hkpdyv8n7nsxfjy-src/src/cli/main/cli.py", line 778, in main
    cli(args)
  File "/nix/store/9ap9mzvmms45ihqb8hkpdyv8n7nsxfjy-src/src/cli/main/cli.py", line 566, in cli
    head: str = _get_head(src)
                ^^^^^^^^^^^^^^
  File "/nix/store/9ap9mzvmms45ihqb8hkpdyv8n7nsxfjy-src/src/cli/main/cli.py", line 374, in _get_head
    remove(dest)
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/_c/yvbg1vvj601875k2z3vkhd500000gq/T/makes-8zs3z4uo/file-that-i-just-created'