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
aws-sam-cli: 0.14.2 -> 0.16.1 #62011
Conversation
Building
|
81023d5
to
47e31ab
Compare
Thanks for reviewing this, @Ma27! I forgot to rebuild the I've updated |
@GrahamcOfBorg build aws-sam-cli |
Built and tested locally, nix-review seems fine 👍 |
@dhl thanks! |
Thank you @Ma27! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be reverted.
let | ||
py = python.override { | ||
packageOverrides = self: super: { | ||
pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overriding a Python library inside python-packages.nix
is going to cause trouble when composing an env consisting of the original version and the overridden version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FRidh understood. I'll get a fix in ASAP.
serverlessrepo has a dependency on pyyaml
declared as 'pyyaml~=3.12'
.
What's the best way to deal with this? Should I fix up the version in setup.py
, or package an older version of pyyaml
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a) check (yourself/with upstream) whether it actually does work with the version we use, and if so patch it
b) if it does not work, then the module is unfortunately broken. Even so, an application can choose to perform the override as is done here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @FRidh. The tests are passing for python 2.7 after patching. Will make another PR after the tests also pass for 3.5, 3.6 and 3.7.
Apologies for the trouble.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch, I actually knew about this, but totally missed that the change is done to a library, sorry! :/
@dhl do you need assistance to fix that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can only perform overrides of run-time dependencies in applications, not in libraries. |
Motivation for this change
To bring aws-sam-cli up-to-date and fix
pythonPackages.serverlessrepo
, which was made broken by pyyaml being updated to a newer version ni nixpkgs.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)