Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lock file hash never matches with --dev #1916

Closed
1 task done
pawamoy opened this issue May 11, 2023 · 2 comments · Fixed by #1918
Closed
1 task done

Lock file hash never matches with --dev #1916

pawamoy opened this issue May 11, 2023 · 2 comments · Fixed by #1918
Assignees
Labels
🐛 bug Something isn't working

Comments

@pawamoy
Copy link
Contributor

pawamoy commented May 11, 2023

  • I have searched the issue tracker and believe that this is not a duplicate.

Following discussions in #1863 and #1909, I lock deps with pdm lock --dev, and every time I install them with pdm install --dev, it says that the "Lock file hash doesn't match pyproject.toml, packages may be outdated", and proceeds to update the lock file. I diff'ed the lock file before and after: no changes.

Steps to reproduce

You can try it within my project:

git clone https://github.com/mkdocstrings/mkdocstrings
cd mkdocstrings
pdm lock -d
pdm install -d  # says hash doesn't match
pdm install -d  # still says it

Note that my project has optional dependencies (extras).

Actual behavior

PDM says that the lock file hash doesn't match pyproject.toml, and updates the lock file each time I run pdm install -d, however after that the lock file is identical. So the hash "never matches". Not sure the hash actually doesn't match.

Expected behavior

Locking with -d then installing with -d shouldn't trigger lock file updates. The hash should match.

Environment Information

# Paste the output of `pdm info && pdm info --env` below:
PDM version:
  2.6.1
Python Interpreter:
  /home/pawamoy/.basher-packages/pyenv/pyenv/versions/3.11.0/bin/python3 (3.11)
Project Root:
  /media/data/dev/mkdocstrings
Local Packages:
  /media/data/dev/mkdocstrings/__pypackages__/3.11
{
  "implementation_name": "cpython",
  "implementation_version": "3.11.0",
  "os_name": "posix",
  "platform_machine": "x86_64",
  "platform_release": "6.3.1-arch1-1",
  "platform_system": "Linux",
  "platform_version": "#1 SMP PREEMPT_DYNAMIC Mon, 01 May 2023 17:42:39 +0000",
  "python_full_version": "3.11.0",
  "platform_python_implementation": "CPython",
  "python_version": "3.11",
  "sys_platform": "linux"
}
@pawamoy pawamoy added the 🐛 bug Something isn't working label May 11, 2023
@frostming
Copy link
Collaborator

Can you help fix it? This one should be obvious.

@pawamoy
Copy link
Contributor Author

pawamoy commented May 11, 2023

I can try 🙂 Any hints? Despite my numerous issues I'm not really familiar with the code base 😅

@frostming frostming self-assigned this May 12, 2023
frostming added a commit that referenced this issue May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants