Files
nixpkgs/pkgs/by-name/mo/mongosh/update.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
389 B
Bash
Raw Normal View History

2025-10-09 14:15:47 +02:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl nix-update jq
# GitHub tags include many unrelated subpackage versions, making it unreliable to determine the latest mongosh version.
# Fetch the latest mongosh version directly from the npm registry instead.
version="$(curl -fsSL https://registry.npmjs.org/mongosh/latest | jq -r ".version")"
nix-update --version "$version" mongosh