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

updating lib using git tag did not work #1287

Closed
zhuoqiang opened this issue Aug 1, 2022 · 1 comment
Closed

updating lib using git tag did not work #1287

zhuoqiang opened this issue Aug 1, 2022 · 1 comment
Labels
🐛 bug Something isn't working

Comments

@zhuoqiang
Copy link

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

Make sure you run commands with -v flag before pasting the output.

Steps to reproduce

pdm init
pdm add git+ssh://git@github.com/benjaminp/six.git@1.11.0
pdm run python -c "import pytest; print(pytest.__version__)"

pdm add git+ssh://git@github.com/benjaminp/six.git@1.12.0
# or manually edit pyproject.toml and do a pdm update

pdm run python -c "import pytest; print(pytest.__version__)"

Actual behavior

it still shows 1.11.0 after the update

updating a lib (six, eg) though git tag sucessed without error, except it did not update the lib

Expected behavior

it should update the lib to new git tag

Environment Information

PDM version:
  2.1.0
Python Interpreter:
  /opt/homebrew/Caskroom/miniconda/base/bin/python (3.9)
Project Root:
  /Users/qiang/projects/test-pdm
Project Packages:
  None
{
  "implementation_name": "cpython",
  "implementation_version": "3.9.12",
  "os_name": "posix",
  "platform_machine": "arm64",
  "platform_release": "21.6.0",
  "platform_system": "Darwin",
  "platform_version": "Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:22 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T6000",
  "python_full_version": "3.9.12",
  "platform_python_implementation": "CPython",
  "python_version": "3.9",
  "sys_platform": "darwin"
}
@zhuoqiang zhuoqiang added the 🐛 bug Something isn't working label Aug 1, 2022
@frostming
Copy link
Collaborator

frostming commented Aug 1, 2022

As a workaround you can include the package name in the requirement:

pdm add "six @ git+ssh://git@github.com/benjaminp/six.git@1.12.0"

Or run another pdm sync can also work.

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

No branches or pull requests

2 participants