GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: do not use short hashes for deps versioning to avoid collision · nodejs/node@7fc9931

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools/dep_updaters
    • update-googletest.sh
    • update-nixpkgs-pin.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/dep_updaters/update-googletest.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-googletest.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ echo "$NEW_GYP" >"$DEPS_DIR/googletest/googletest.gyp"
8686
# Update the version number on maintaining-dependencies.md
8787
# and print the new version as the last line of the script as we need
8888
# to add it to $GITHUB_ENV variable
89-
finalize_version_update "googletest" "$NEW_VERSION"
89+
finalize_version_update "googletest" "$NEW_UPSTREAM_SHA1"
Collapse file

‎tools/dep_updaters/update-nixpkgs-pin.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/update-nixpkgs-pin.sh
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ NIXPKGS_PIN_FILE="$BASE_DIR/tools/nix/pkgs.nix"
88

99
NIXPKGS_REPO=$(grep 'repo =' "$NIXPKGS_PIN_FILE" | awk -F'"' '{ print $2 }')
1010
CURRENT_VERSION_SHA1=$(grep 'rev =' "$NIXPKGS_PIN_FILE" | awk -F'"' '{ print $2 }')
11-
CURRENT_VERSION=$(echo "$CURRENT_VERSION_SHA1" | head -c 7)
1211

1312
NEW_UPSTREAM_SHA1=$(git ls-remote "$NIXPKGS_REPO.git" nixpkgs-unstable | awk '{print $1}')
14-
NEW_VERSION=$(echo "$NEW_UPSTREAM_SHA1" | head -c 7)
13+
NEW_VERSION=$(echo "$NEW_UPSTREAM_SHA1" | head -c 35)
1514

1615

1716
# shellcheck disable=SC1091
1817
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1918

20-
compare_dependency_version "nixpkgs-unstable" "$NEW_VERSION" "$CURRENT_VERSION"
19+
compare_dependency_version "nixpkgs-unstable" "$CURRENT_VERSION_SHA1" "$NEW_UPSTREAM_SHA1"
2120

2221
CURRENT_TARBALL_HASH=$(grep 'sha256 =' "$NIXPKGS_PIN_FILE" | awk -F'"' '{ print $2 }')
2322
NEW_TARBALL_HASH=$(nix-prefetch-url --unpack "$NIXPKGS_REPO/archive/$NEW_UPSTREAM_SHA1.tar.gz")

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.