Skip to content

nimble lock computes different hash on Windows than Linux/macOS #81

@iffy

Description

@iffy

I filed this issue with nimble: nim-lang/nimble#1188

I don't really know what the fix is. The trouble is that this repo's .gitattributes file causes a different hash to be computed on Windows vs Linux/macOS, but I can understand why you want that file in this repo. Do you have a suggestion?

Activity

jangko

jangko commented on Feb 27, 2024

@jangko
Owner

because of EOL conversion?

iffy

iffy commented on Feb 27, 2024

@iffy
Author

Yes, nimble computes a hash of the directory of installed packages for use in a lock file. On Windows, because of the EOL conversion, the hashes are different than those on Linux/macOS.

jangko

jangko commented on Feb 28, 2024

@jangko
Owner

actually only one file is problematic tests/basic.mp should be treated as binary instead of text.

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @iffy@jangko

        Issue actions

          nimble lock computes different hash on Windows than Linux/macOS · Issue #81 · jangko/msgpack4nim