-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
python3Packages.langchain*: fix automatic updates #390196
Conversation
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.
Ok for me, but I think that passthru.updateScript
is set to nix-update-script {}
by default for all python packages.
If so, I'll have to finish up the alternate updater. The default |
Would it be better to keep in the |
I think so. |
3122386
to
60f6375
Compare
I'm trying explicitly supplying If it fails, we need to look upstream to either the python updater or the generic update script (the latter seems very unlikely). |
versionRegex
to updateScript
per module
@drupol and @GaetanLepage Since I changed the updates across the board, I'm requesting a new review. |
60f6375
to
b834065
Compare
I found a reproducible test case for the bad updates and verified this fix works. Assume One more fix to do: I need to relax the dependency on |
b834065
to
7058e8d
Compare
7058e8d
to
9d42854
Compare
versionRegex
to updateScript
per module
|
|
|
863e6fd
to
d65349c
Compare
|
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.
LGTM
d65349c
to
1d51451
Compare
TL;dr: The bulk updater kept updating each component to the wrong tag. It turns out each package needs to specify its version regex indepedently.
langchain is a monorepo that uses tags such as
langchain-sdk==0.1.2
for its components. Unfortunately, the generic updater chooses the latest tag without looking at the tag expression in the fetcher.passthru.skipBulkUpdates = true
was intended to disable auto updates, but r-ryantm keept issuing piecemeal updates which updated the each component to the wrong tag (newest tag overwrote all).This PR adds an explicit
--versionRegex
value to the update script per module. It also re-enables bulk updates as the per-component regex solves the problem.P.S. Apologies for the long comment thread. I originally approached this from a different direction that didn't work out.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.