Skip to content
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

Bump git to 2.47.0 #7

Merged
merged 6 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run ShellCheck
run: |
sudo apt-get install shellcheck
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
TARGET_PLATFORM: ${{ matrix.targetPlatform }}
TARGET_ARCH: ${{ matrix.arch }}
- name: Upload output artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name:
dugite-native-${{ matrix.targetPlatform }}-${{ matrix.arch }}-output
Expand All @@ -106,10 +106,10 @@ jobs:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Download all artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: './artifacts'

Expand Down
8 changes: 4 additions & 4 deletions dependencies.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"git": {
"version": "v2.45.2",
"version": "v2.47.0",
"packages": [
{
"platform": "windows",
"arch": "amd64",
"filename": "PortableGit-2.45.2-64-bit.7z.exe",
"url": "https://github.com/git-for-windows/git/releases/download/v2.45.2.windows.1/PortableGit-2.45.2-64-bit.7z.exe",
"checksum": "851a15074dea6b272785b2a2a4697a72970256de2afe7b8e4a9c5e168c27ccdd"
"filename": "PortableGit-2.47.0.2-64-bit.7z.exe",
"url": "https://github.com/git-for-windows/git/releases/download/v2.47.0.windows.2/PortableGit-2.47.0.2-64-bit.7z.exe",
"checksum": "c77368a8f6ccbd43bde0df0ab603133ce885407a018787d6f1971e040590f1ab"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion git
Submodule git updated 1337 files
62 changes: 7 additions & 55 deletions script/build-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ case "$TARGET_ARCH" in
export CC="gcc"
STRIP="strip"
HOST=""
TARGET=""
OSSL_TARGET="linux-x86_64" ;;
TARGET="" ;;
"x86")
DEPENDENCY_ARCH="x86"
export CC="i686-linux-gnu-gcc"
STRIP="i686-gnu-strip"
HOST="--host=i686-linux-gnu"
TARGET="--target=i686-linux-gnu"
OSSL_TARGET="linux-generic32" ;;
TARGET="--target=i686-linux-gnu" ;;
"arm64")
# __GLIBC_MINOR__ is used as a feature test macro. Replace it with the
# earliest supported version of glibc 2.17 as was previously the case when building on ubuntu-18.04
Expand All @@ -50,15 +48,13 @@ case "$TARGET_ARCH" in
export CC="aarch64-linux-gnu-gcc"
STRIP="aarch64-linux-gnu-strip"
HOST="--host=aarch64-linux-gnu"
TARGET="--target=aarch64-linux-gnu"
OSSL_TARGET="linux-aarch64" ;;
TARGET="--target=aarch64-linux-gnu" ;;
"arm")
DEPENDENCY_ARCH="arm"
export CC="arm-linux-gnueabihf-gcc"
STRIP="arm-linux-gnueabihf-strip"
HOST="--host=arm-linux-gnueabihf"
TARGET="--target=arm-linux-gnueabihf"
OSSL_TARGET="linux-armv4" ;;
TARGET="--target=arm-linux-gnueabihf" ;;
*)
exit 1 ;;
esac
Expand All @@ -74,62 +70,18 @@ source "$CURRENT_DIR/compute-checksum.sh"
# shellcheck source=script/check-static-linking.sh
source "$CURRENT_DIR/check-static-linking.sh"

echo " -- Building vanilla OpenSSL at $OSSL_INSTALL_DIR instead of distro-specific version"

OSSL_FILE_NAME="openssl-1.0.2u"
OSSL_FILE="$OSSL_FILE_NAME.tar.gz"

cd /tmp || exit 1
curl -LO "https://www.openssl.org/source/$OSSL_FILE"
tar -xf $OSSL_FILE

(
cd $OSSL_FILE_NAME || exit 1

# this will conflict with a variable in the makefile
unset TARGET_ARCH

# flags:
# - no-ssl2: deprecated
# - no-ssl3: deprecated
# - no-comp: not used by libcurl
# - no-dso: libcurl won't respect libssl saying it needs -ldl
# - no-engine: disabled because
./Configure \
"$OSSL_TARGET" \
shared \
no-ssl2 \
no-ssl3 \
no-comp \
no-dso \
no-engine \
--prefix="$OSSL_INSTALL_DIR" \
--openssldir="$OSSL_INSTALL_DIR"

make depend
make build_libs
make install
)
echo " -- Building vanilla curl at $CURL_INSTALL_DIR instead of distro-specific version"

CURL_FILE_NAME="curl-7.29.0"
CURL_FILE_NAME="curl-7.58.0"
CURL_FILE="$CURL_FILE_NAME.tar.gz"

cd /tmp || exit 1
curl -LO "https://curl.haxx.se/download/archeology/$CURL_FILE"
curl -LO "https://curl.haxx.se/download/$CURL_FILE"
tar -xf $CURL_FILE

(
cd $CURL_FILE_NAME || exit 1

export LDFLAGS="-Wl,-R$OSSL_INSTALL_DIR/lib"

./configure \
--enable-threaded-resolver \
--enable-tls-srp \
--prefix="$CURL_INSTALL_DIR" \
--with-ssl="$OSSL_INSTALL_DIR" \
"$HOST" "$TARGET"
./configure --prefix="$CURL_INSTALL_DIR" "$HOST" "$TARGET"
make install
)
echo " -- Building git at $SOURCE to $DESTINATION"
Expand Down
1 change: 0 additions & 1 deletion script/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ BASEDIR=$ROOT \
SOURCE="$ROOT/git" \
DESTINATION="/tmp/build/git" \
CURL_INSTALL_DIR="/tmp/build/curl" \
OSSL_INSTALL_DIR="/tmp/build/openssl" \
bash "$SCRIPT"
4 changes: 2 additions & 2 deletions script/generate-release-notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default class GenerateReleaseNotes {
const match = mergeCommitRegex.exec(mergeCommitMessage)
if (match != null && match.length === 2) {
const num = parseInt(match[1])
if (num != NaN) {
if (!Number.isNaN(num)) {
pullRequestIds.push(num)
}
}
Expand All @@ -178,7 +178,7 @@ export default class GenerateReleaseNotes {
pull_number: pullRequestId,
})
const { title, number, user } = result.data
const entry = ` - ${title} - #${number} via @${user.login}`
const entry = ` - ${title} - #${number} via @${user?.login ?? 'unknown'}`
releaseNotesEntries.push(entry)
}

Expand Down
7 changes: 7 additions & 0 deletions script/update-git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ async function run() {
}
}

if (!body) {
console.log(
`🔴 No release notes found for Git for Windows version ${version}`
)
return
}

const package64bit = await getPackageDetails(assets, body, 'amd64')

if (package64bit == null) {
Expand Down
Loading