3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/vscode-extensions/ms-dotnettools-csharp/update-bin-srcs
Raymond Gauthier a443ee3613
ms-dotnettools.csharp: 1.23.2 -> 1.23.15
Update to latest. Also refactor to adapt to slight change in
`./rt-deps-bin-srcs.json` format.
2021-10-18 18:39:21 -04:00

22 lines
587 B
Plaintext
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -I nixpkgs=../../../.. -i bash -p curl jq unzip
set -euf -o pipefail
declare scriptDir
scriptDir=$(cd "$(dirname "$0")"; pwd)
1>&2 echo "scriptDir='$scriptDir'"
. "$scriptDir/../_maintainers/update-bin-srcs-lib.sh"
declare extPublisher="ms-dotnettools"
declare extName="csharp"
declare defaultExtVersion="1.23.15"
declare extVersion="${1:-$defaultExtVersion}"
formatExtRuntimeDeps \
"$extPublisher" "$extName" "$extVersion" \
| computeAndAttachExtRtDepsChecksums \
| jqStreamToJson \
| tee "$scriptDir/rt-deps-bin-srcs.json" \
| jq '.'