rmfakecloud: 0.0.29 -> 0.0.31#524309
Conversation
|
| vendorHash = "sha256-A+y63w+sEleXFh4ZHgFo1IhsQ2KhqqKW4vRPi393atI="; | ||
|
|
||
| # if using webUI build it | ||
| # use env because of https://github.com/NixOS/nixpkgs/issues/358844 |
There was a problem hiding this comment.
please remove this comment if env is no longer needed; and I'd also like either a pointer at the fix (that issue ended closed with a draft PR not merged...) or some reassurance that it works, the automated tests don't check the webui iirc -- did it work?
There was a problem hiding this comment.
It seems to work on my machine (ran the binary, and navigated to the website at port 3000 on my browser).
There was a problem hiding this comment.
hm actually wanted to take a spin locally and didn't work for me, it might have worked for you if you built once with env... and the cached artifact was in your nix store for second build?
(that's with your commit cherry-picked on top of nixos-unstable)
$ nix -L build -f . rmfakecloud
source> structuredAttrs is enabled
source>
source> trying https://github.com/ddvk/rmfakecloud/archive/v0.0.31.tar.gz
source> % Total % Received % Xferd Average Speed Time Time Time Current
source> Dload Upload Total Spent Left Speed
source> 0 0 0 0 0 0 0 0 00:01 0
source> 100 571.2k 0 571.2k 0 0 215.5k 0 00:02 0
source> unpacking source archive /build/download.tar.gz
rmfakecloud-pnpm-deps> Running phase: unpackPhase
rmfakecloud-pnpm-deps> unpacking source archive /nix/store/4skmvbkpw297m5ydzn1jd6j1jgx260vj-source
rmfakecloud-pnpm-deps> source root is source/ui
[...]]
rmfakecloud-pnpm-deps> Downloading @swc/core-win32-ia32-msvc@1.9.2: 2.18 MB/9.14 MB
rmfakecloud> source root is source
rmfakecloud> Running phase: patchPhase
rmfakecloud> Running phase: updateAutotoolsGnuConfigScriptsPhase
rmfakecloud-pnpm-deps> Progress: resolved 389, reused 0, downloaded 174, added 174
rmfakecloud> Running phase: configurePhase
rmfakecloud-pnpm-deps> Downloading pdfjs-dist@4.4.168: 9.57 MB/10.12 MB
rmfakecloud> Executing pnpmConfigHook
rmfakecloud> Error: 'pnpmDeps' must be set when using pnpmConfigHook.
error: builder for '/nix/store/7m77vd07b6vh9h23m5zyp36wi4lgnsl4-rmfakecloud-0.0.31-go-modules.drv' failed with exit code 1
error (ignored): error: cannot unlink "/tmp/nix-shell.hirUFv/nix-build-rmfakecloud-pnpm-deps.drv-0/build": Directory not empty
error: 1 dependencies of derivation '/nix/store/s8937l0yp7zj2hipdmlh2vc980b9ylan-rmfakecloud-0.0.31.drv' failed to build
There was a problem hiding this comment.
Huh, weird... it may have been a cached artifact, I'll try collecting garbage and trying again.
There was a problem hiding this comment.
Yup, it must have been cached. Tried it again after clearing my cache and it breaks.
I do want to see if there is any way around this as adding the env messes with the auto updater (or possibly modify/fix the auto update script to work with env?)
There was a problem hiding this comment.
Nevermind, I see that you've already looked into nix-update, and the pr mentioned in your issue has gone stale.
I'll just revert this change as I doubt there is any fixes I could do atm. Ty for looking into this a long time ago!, sad that there aren't any new updates to this issue 🥲.
There was a problem hiding this comment.
Aaah, it's all coming back to me, I was confused because r-ryantm managed to build some updates (0.0.27 -> 0.0.29), but that's because it didn't contain any UI update...
So, yeah, I don't think we can do much about this in the short term, let's stick with what we have :/
And I'll re-open the issue, even if I'm not holding my breath :)
There was a problem hiding this comment.
Thanks for looking into this and making the nix-update PR!
4830c14 to
99e9bba
Compare
| vendorHash = "sha256-A+y63w+sEleXFh4ZHgFo1IhsQ2KhqqKW4vRPi393atI="; | ||
|
|
||
| # if using webUI build it | ||
| # use env because of https://github.com/NixOS/nixpkgs/issues/358844 |
99e9bba to
0c1b2c0
Compare
| vendorHash = "sha256-A+y63w+sEleXFh4ZHgFo1IhsQ2KhqqKW4vRPi393atI="; | ||
|
|
||
| # if using webUI build it | ||
| # use env because of https://github.com/NixOS/nixpkgs/issues/358844 |
There was a problem hiding this comment.
Aaah, it's all coming back to me, I was confused because r-ryantm managed to build some updates (0.0.27 -> 0.0.29), but that's because it didn't contain any UI update...
So, yeah, I don't think we can do much about this in the short term, let's stick with what we have :/
And I'll re-open the issue, even if I'm not holding my breath :)
|
Since no committer has had time to look at this yet, could you grab this commit in your branch if you have time? https://github.com/martinetd/nixpkgs/commits/rmfakecloud_pnpm rmfakecloud: use pnpm 11 ? I've checked the UI works as expected manually with new pnpm version |
|
Sure, would you like me to keep it as a seperate commit, or merge it into my commit (and if so, would I add a "Co-authored by")? |
|
It's functionally independent so I think a separate commit makes sense here |
martinetd
left a comment
There was a problem hiding this comment.
Thanks! I'll link this to PRs ready to be merged once ofborg passes
|
Unsure why Github formats stuff so weirdly... but I've cherry-picked your commit on top of my branch :) |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-already-reviewed/2617/3075 |
pnpm9 is now EOL and should no longer be used (NixOS#529285) Also update fetchPnpmDeps to fetcherVersion=4 as recommended
|
a34aacd to
851cbf9
Compare
|
Thanks! |
|
Successfully created backport PR for |
…r hashes Some packages like rmfakecloud cannot be reliably updated, this makes the autoupdate script work and create content similar to this PR done manually[1] This has been discussed in Mic92#302 before but the goModules rework that was drafted at that point went stale, and we might as well work around the problem[2] in nix-update: basically, the goModules hash is based on the whole derivation, and not just the actual go dependencies being pulled, so we want to keep it late in execution order. Link: NixOS/nixpkgs#524309 [1] Link: NixOS/nixpkgs#358844 [2] Fixes Mic92#302
Updates rmfakecloud,
and removes theenv.from the pnpm stuff as otherwise @r-ryantm has issues updating it (see its logs)Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.