14 Commits
Author SHA1 Message Date
Igor Sirotin 986045c67f fix(nix): point logos-storage-nim input at upstream repo (#7672) 2026-07-29 17:31:26 +01:00
Igor SirotinandClaude Fable 5 88d7048435 ci: upgrade to Go 1.26 (#7651)
* ci: upgrade to Go 1.26

- go.mod: go 1.24.0 -> 1.26.0
- Dockerfile: golang:1.26.5-trixie
- GHA lint workflow: setup-go 1.26, golangci-lint v2.12.2 (built with go1.26;
  older binaries refuse to typecheck go 1.26 modules)
- Jenkinsfile.desktop: go-1.26 agent label
- nix: nixpkgs 24.11 -> 25.11 (same commit as logos-delivery); go_1_26 +
  buildGo126Module; golangci-lint 2.12.2; protobuf3_24 (removed) -> protobuf_29;
  android platform-tools 35.0.2 (34.x removed from androidenv)
- nix: lmn and logos-storage-nim no longer follow our nixpkgs - their pinned
  revisions don't evaluate against 25.11 (removed Android SDK versions); lmn's
  own lock is the same 24.11 commit as before, so cached libwaku is reused
- nix/shell.nix: codecov-cli excluded on aarch64-linux (upstream stopped
  publishing linux-arm64 binaries)
- .golangci.yml: freeze new gosec rules and govet inline analyzer introduced
  by the 2.3 -> 2.12 jump; TODO notes to triage findings separately

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test: adapt tests to Go 1.26 stdlib changes

- services/wallet/bigint: zero-value big.Int now holds an empty non-nil
  internal slice; compare with Cmp instead of reflect-based equality
- internal/images: image encoders produce slightly different output sizes
  under Go 1.26; update exact-size expectations

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test: regenerate functional-test reference images for Go 1.26

The community image references are byte-exact outputs of
images.GenerateIdentityImages; Go 1.26's JPEG encoder produces slightly
different bytes. Regenerated with the same pipeline (verified the
generator reproduces the old references byte-for-byte under Go 1.24).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci: retrigger after go-1.26 agent label added

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci: update Windows scoop Go path to 1.26.5

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* chore(nix): remove obsolete darwin SDK override

* chore: shorten comments

* chore(nix): drop unused libwaku, restore logos-storage-nim follows

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-28 21:39:27 +01:00
Ivan FBandClaude Opus 4.8 9a4e373783 chore(messaging): bump SDS stack (bindings v0.3.1, nim-sds v0.3.3)
Move onto the SDS retrieval-hint line so store nodes can serve missing
dependencies efficiently. This requires a matched ABI bump across pins
that must move together, hence a single atomic commit (any subset fails
to build):

- sds-go-bindings -> v0.3.1: adds the RetrievalHintProvider callback and
  the HistoryEntry-shaped MissingDeps. Tagged on release/v0.3, cut off the
  last CamelCase/JSON-ABI commit plus a one-line fix for a non-compiling
  zap log call that shipped on that tip.
- nim-sds -> v0.3.3 (release/v0.3): the matching libsds that exports
  SdsSetRetrievalHintProvider on the CamelCase FFI ABI. v0.3.2 keeps the
  causalHistory wire backward-compatible with released (v0.2.x) nodes
  (hints in additive field 8); v0.3.3 fixes a SIGSEGV where the
  retrieval-hint buffer (malloc'd by the binding) was freed with Nim's
  deallocShared instead of libc free. Pinned in both the Makefile and the
  flake (lock updated). Upstream master/release-v0.4 use the snake_case
  CBOR ABI, which these bindings do not link against, so we track
  release/v0.3.
- reliability: adapt the OnMissingDependencies callback signature to the
  new []sds.HistoryEntry (was []sds.MessageID).
- nix: refresh the Go-modules vendorHash for the bindings bump.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-13 11:32:01 -04:00
Siddarth Kumar e84798ff66 fix: bump zerokit to fix fetching from crates via user agent 2026-05-28 20:23:23 +05:30
Siddarth Kumar b1c522e6cc fix: use circom-compat-ffi from PR that fixes fetching of dep 2026-05-28 19:18:14 +05:30
Marcin Czenkoandjakub 5141a339a9 feat: libstorage support in build system (#7332)
* feat: support libstorage in the build system

* build: make sure linting includes logos-storage

* build: tweaking native build of libstorage that avoids calling make update (allowing to build on RYZEN processors)

* build: removes redundant scripts

* build: removes printing libstorage version on nix env

* test: more uniform naming (USE_LOGOS_STORAGE)

* build: bumps vendor hash

* test: include logosstorage tests in the coverage on the CI

* build: remove passing lib paths to the generate target

Co-authored-by: Jakub <jakub@status.im>

* build: Update Dockerfile - remove indentation

Co-authored-by: Jakub <jakub@status.im>

* build: remove redundant check in Makefile

Co-authored-by: Jakub <jakub@status.im>

* build: remove noise from Makefile

Co-authored-by: Jakub <jakub@status.im>

* build: remove redundant IFs from Makefile

* build: adds README to be used when printing logosstorage help messages

* build: move some Makefile vars to be better visible in context

---------

Co-authored-by: Jakub <jakub@status.im>
2026-04-22 17:45:04 +02:00
jakub 0e77e67b9a fix(nix): backport Android SDK error fixes
Resolves this error caused by Zerokit:
error: aarch64-darwin not supported for Android SDK. Use: NIXPKGS_SYSTEM_OVERRIDE=x86_64-darwin

Backports changes from this PR:
https://github.com/logos-messaging/logos-messaging-nim/pull/3694

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2026-01-27 10:56:41 +01:00
marko ec29a55fa5 fix(nix): fix libwaku and lib-sds-pkg dependency 2026-01-21 12:44:55 +01:00
Ivan FBandjakub 8db6ff48cc chore: add sds dependency without changes in Go logic (cont) (#7157)
* feat: add nim-sds to build

* chore: simpler flake nix as x Jakub suggest how to get nim-sds

* chore: try simpler flake nix consume nim-sds

* chore: Update Makefile

Co-authored-by: Jakub <jakub@status.im>

* chore: cleanup shell nix NIM_SDS_SOURCE_DIR

* chore: uncomment build-libsds-android target Makefile

* chore: adapt Makefile to build sds for ios and android

* chore: bump nim-sds to v0.2.1

* chore: specify arch arm64 when building android libsds

* chore: pass ANDROID_NDK_ROOT to nim-sds Makefile

* chore: enforce USE_SYSTEM_NIM=1 in libsds-android

---------

Co-authored-by: Jakub <jakub@status.im>
2025-12-03 14:06:11 +00:00
Igor Sirotin a45eec8e83 revert: chore: add sds dependency without changes in Go logic (#7115)
This reverts commit 92bc1be058.
2025-11-27 06:12:17 +01:00
92bc1be058 chore: add sds dependency without changes in Go logic (#7115)
Co-authored-by: Jakub <jakub@status.im>
Co-authored-by: Igor Sirotin <sirotin@status.im>
2025-11-24 22:03:00 +01:00
vedran c8d89ff0b5 ci_: upgrade nixpkgs to 25.05
- Enables native NDK 27 support for status-go Android CI
- Fixes iOS build by adding iPhone OS SDK symlink to xcode-wrapper
2025-09-23 12:08:39 +02:00
Siddarth Kumar 30695130f4 ci_: upgrade nixpkgs to 24.11
- point `nixpkgs` to commit from `release-24.11`
- bump `protobuf` to `3_24`
- fix `gomobile` issue with : `error: unable to find sdk: 'iphoneos'`
2025-06-24 21:13:29 +05:30
marko f6e42a3b4c feat(development)_: create nix flake with devshells and packages
Expose status-go library, mobile-android and mobile-ios as packages of
this flake.

Referenced issue:
* https://github.com/waku-org/nwaku/issues/3232
2025-05-29 13:56:30 +02:00