Skip to content

Nix store optimise fails on macOS #431

@Masrepus

Description

@Masrepus

Describe the bug

In response to NixOS#1443, a regex check was introduced to the nix store optimise code to skip files in bla.app/Contents directories.

On my system, I also have apps with bla.app/_CodeSignature/ files that fail during hard linking, so I would suggest to extend the regex to also cover this.

Alternatively, I think nix store optimise should also just continue gracefully in cases where hardlinking fails and maybe just print a warning instead?

Steps To Reproduce

Some iOS xcarchives seem to produce this _CodeSignature directory directly in the app dir instead of Contents, although this may also be some non-standard thing. I think nix store optimise should accept it either way.

Expected behavior

nix store optimise never fails

Metadata

Additional context

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions