Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Jan 23, 2025
1 parent 99e3c9f commit 1696c95
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 11 additions & 5 deletions nix/status-go/mobile/build.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions status-go-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"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"
}

0 comments on commit 1696c95

Please sign in to comment.