question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Peer dependencies of git package not downloaded

See original GitHub issue

Issue description

Dependencies from a dependency from a git source are no longer automatically installed after the 2020 update.

Expected result

Install all required packages, including the requirements of dependencies

Actual result

Peer dependencies are not resolved

Steps to replicate

Pipfile:

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[dev-packages]

[packages]
pycodestyle = {git = "https://github.com/PyCQA/pycodestyle.git"}
generator_python = {git = "https://gitlab.ewi.tudelft.nl/weblab/generator-python.git"}
mock = "*"

[requires]
python_version = "3.8"

[scripts]
all = "sh -c 'pipenv run codestyle && pipenv run generator && pipenv run tests'"
codestyle = "pycodestyle --exclude output,.venv ."
generator = "sh -c 'python -m generator assignments'"
tests = "sh run-tests.sh"

After pipenv install, running pipenv run generator will result in errors due to missing packages. These packages are listed in this repo’s setup.py, but are not installed. With pipenv==2018.11.26 these packages are downloaded and everything works.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
frostmingcommented, May 31, 2020

@yoshivda The Pipfile.lock lacks peer dependencies, can you try pipenv lock --clear and see whether the file is fixed?

0reactions
yoshivdacommented, Jun 2, 2020

@frostming Thanks for the explanation, that helps 🙂 I still can’t find it in the changelog, but that might be my bad?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should I duplicate "peerDependencies" in "dependencies ...
So while installing packages using npm install , NPM will attempt to install an optional dependency too. But if it isn't able to...
Read more >
check-peer-dependencies - npm
Checks peer dependencies of the current package. Offers solutions for any that are unmet.. Latest version: 4.1.0, last published: a year ago ...
Read more >
Peer Dependencies | Node.js
For npm versions 3 through 6, you will receive a warning that the peerDependency is not installed instead.
Read more >
yarn add
Installs a package and any packages that it depends on. Adding dependencies. In general, a package is simply a folder with code and...
Read more >
npm install | how it works - StackChief
When run without arguments, npm install downloads dependencies defined in a package.json file and generates a node_modules folder with the installed modules ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found