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
minio: set version to a valid datetime string #121786
Conversation
I came up with this function but it's a bit ugly lol
|
Result of 1 package built successfully:
1 suggestion:
Result of 1 package built successfully:
1 suggestion:
|
@ryantm will this cause issues with the automatic update if the version doesn't match the tag? If yes I prefer the solution from @06kellyjac |
Yeah it will. It would require a custom update script which is not necessary. |
I've added the solution by @06kellyjac. With that we get continued compatibility with the auto update and the minio browser works. |
@ryantm No I would very much like to keep auto updates, they are very handy. With the updated solution they should continue to work. |
Adding the following to the bottom of your commit would be appreciated but not required 🙂
|
Co-authored-by: 06kellyjac <dev@j-k.io>
👍 🎉 |
Motivation for this change
Minio verifies on each RPC call that the server version returned by the API is a valid datetime string (https://github.com/minio/minio/blob/3a0e7347cad25c60b2e51ff3194588b34d9e424c/browser/app/js/web.js#L51-L53).
When returning the version as "2021-04-22T15-44-28Z" this check fails and the login (and all other RPC calls) in the minio browser are not possible:
Is there a cleaner way to replace just the last two dashes in "2021-04-22T15-44-28Z" with colons so that the version attribute can be left as-is and only the part in the
patchPhase
will be adjusted?Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)