From 1696c952d404c55ac6b89ca60e54ff53effaa783 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Thu, 23 Jan 2025 15:52:10 +0530 Subject: [PATCH] debug --- nix/status-go/mobile/build.nix | 16 +++++++++++----- status-go-version.json | 6 +++--- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/nix/status-go/mobile/build.nix b/nix/status-go/mobile/build.nix index 5c9d31cc038..4a65890ca29 100644 --- a/nix/status-go/mobile/build.nix +++ b/nix/status-go/mobile/build.nix @@ -50,6 +50,8 @@ in buildGoPackage rec { SENTRY_CONTEXT_NAME = "status-mobile"; SENTRY_CONTEXT_VERSION = version; + gitRoot= "go/src/${goPackagePath}"; + preBuild = '' # To fix fatal: not a git repository (or any of the parent directories): .git git init --quiet --initial-branch=main . @@ -58,13 +60,17 @@ in buildGoPackage rec { git commit --quiet --allow-empty -m "Initial commit" git tag -a "v${source.cleanVersion}" -m "Version ${source.cleanVersion}" + echo 'we here' + pwd + + echo 'contents of "${gitRoot}/internal/version/version.go" before patch' + cat ${gitRoot}/internal/version/version.go + echo 'Generate static files' - pushd go/src/$goPackagePath + pushd ${gitRoot} - # To fix sh: line 1: ../../_assets/scripts/version.sh: cannot execute: required file not found - substituteInPlace "internal/version/version.go" --replace-warn \ - '//go:generate sh -c "../../_assets/scripts/version.sh > VERSION || true"' \ - '//go:generate sh -c "$(pwd)/../../_assets/scripts/version.sh > VERSION || true"' + echo 'we here' + pwd make generate SHELL=$SHELL GO111MODULE=on GO_GENERATE_CMD='go generate' popd diff --git a/status-go-version.json b/status-go-version.json index 244c1d7e56f..d39f630a78e 100644 --- a/status-go-version.json +++ b/status-go-version.json @@ -3,7 +3,7 @@ "_comment": "Instead use: scripts/update-status-go.sh ", "owner": "status-im", "repo": "status-go", - "version": "v9.2.0", - "commit-sha1": "41743c6ca0bb0a1ff4510bfa3575948d477e6284", - "src-sha256": "1awd04bsxkglbgd0nk5mdz2sm17pxkcj47hfslczsppww7yhmc9n" + "version": "fix-path-to-version-sh", + "commit-sha1": "bbeb7078d4f753f9a1bf05feb2b2fea73d9c1a9e", + "src-sha256": "0bck8i63f5pys2lxzgwvgfqjhf475ihsvbv01807l5izvwk94v26" }