Skip to content
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
40 changes: 14 additions & 26 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ jobs:
exit 0
fi

# Create simple issue body
# Create issue body
cat > issue.md << 'EOF'
New Anytype versions available.
New Anytype release available.

**Current:** ${{ env.current_ts }}
**Latest:** ${{ env.latest_ts }}
Expand All @@ -64,50 +64,38 @@ jobs:
EOF

# Add versions as simple list
jq -r 'to_entries | .[] | "- \(.key): v\(.value)"' new_versions.json >> issue.md
jq -r 'to_entries | .[] | "- `\(.key)`: v\(.value)"' new_versions.json >> issue.md

# Add update process
cat >> issue.md << 'EOF'

## Update

### 1. Edit `go.mod` directly
Update the version numbers for packages that changed (see above):
```
require (
github.com/anyproto/any-sync-consensusnode vX.Y.Z
github.com/anyproto/any-sync-coordinator vX.Y.Z
github.com/anyproto/any-sync-filenode vX.Y.Z
github.com/anyproto/any-sync-node vX.Y.Z
)
```
Update `go.mod` with the versions above.

Also update the timestamp comment:
```
// Current timestamp: "${{ env.current_ts }}" → "${{ env.latest_ts }}"
```

### 2. Sync and verify dependencies
```bash
`go mod tidy` may also update `github.com/anyproto/any-sync` automatically.

Verify:
```
go mod tidy
go mod verify
```

### 3. Fix any API breaking changes
If the build fails, check the changelogs above for breaking changes and update code accordingly.

### 4. Run quality checks
```bash
golangci-lint run --fix ./...
go test -race -shuffle=on -vet=all -failfast ./...
go build -o any-sync-bundle .
```

### 5. Verify the binary
```bash
./any-sync-bundle --version
./any-sync-bundle --help
nix build .#default
nix flake check
```

Optional smoke test:
```bash
go test -tags=integration ./integration/...
```

---
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

src = ./.;

vendorHash = "sha256-nlY04zwrH9VgtlEJPlkfj27r++JnS16Bf16Zcwj6q5Y=";
vendorHash = "sha256-8hAKacWzLL2SIyBgP9o8XCtf4xMPA+1a3R1FX/Qx8vE=";

env.CGO_ENABLED = 0;

Expand Down
40 changes: 20 additions & 20 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ go 1.26
tool github.com/matryer/moq

// Source: https://puppetdoc.anytype.io/api/v1/prod-any-sync-compatible-versions/
// Current timestamp: "1774444314"
// Current timestamp: "1775556105"
require (
github.com/anyproto/any-sync-consensusnode v0.6.8
github.com/anyproto/any-sync-coordinator v0.8.4
github.com/anyproto/any-sync-filenode v0.10.6
github.com/anyproto/any-sync-node v0.10.5
github.com/anyproto/any-sync-consensusnode v0.7.1
github.com/anyproto/any-sync-coordinator v0.9.0
github.com/anyproto/any-sync-filenode v0.11.0
github.com/anyproto/any-sync-node v0.11.0
)

require (
github.com/anyproto/any-sync v0.11.14
github.com/anyproto/any-sync v0.11.20
github.com/dgraph-io/badger/v4 v4.9.1
github.com/ipfs/go-block-format v0.2.3
github.com/ipfs/go-cid v0.6.0
Expand All @@ -32,7 +32,7 @@ require (

require (
dario.cat/mergo v1.0.2 // indirect
filippo.io/edwards25519 v1.1.0 // indirect
filippo.io/edwards25519 v1.2.0 // indirect
github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/OneOfOne/xxhash v1.2.8 // indirect
Expand Down Expand Up @@ -77,7 +77,7 @@ require (
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-redsync/redsync/v4 v4.15.0 // indirect
github.com/go-redsync/redsync/v4 v4.16.0 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/goccy/go-graphviz v0.2.10 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
Expand All @@ -89,7 +89,7 @@ require (
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/yamux v0.1.2 // indirect
github.com/huandu/skiplist v1.2.1 // indirect
github.com/ipfs/boxo v0.35.2 // indirect
github.com/ipfs/boxo v0.37.0 // indirect
github.com/jbenet/go-temp-err-catcher v0.1.0 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/klauspost/compress v1.18.2 // indirect
Expand Down Expand Up @@ -132,7 +132,7 @@ require (
github.com/prometheus/common v0.66.1 // indirect
github.com/prometheus/procfs v0.17.0 // indirect
github.com/quic-go/quic-go v0.59.0 // indirect
github.com/redis/go-redis/v9 v9.17.3 // indirect
github.com/redis/go-redis/v9 v9.18.0 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/shirou/gopsutil/v4 v4.26.2 // indirect
Expand All @@ -151,23 +151,23 @@ require (
github.com/zeebo/blake3 v0.2.4 // indirect
github.com/zeebo/errs v1.3.0 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.65.0 // indirect
go.opentelemetry.io/otel v1.41.0 // indirect
go.opentelemetry.io/otel/metric v1.41.0 // indirect
go.opentelemetry.io/otel/trace v1.41.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.yaml.in/yaml/v2 v2.4.3 // indirect
golang.org/x/crypto v0.48.0 // indirect
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect
golang.org/x/crypto v0.49.0 // indirect
golang.org/x/exp v0.0.0-20260212183809-81e46e3db34a // indirect
golang.org/x/image v0.21.0 // indirect
golang.org/x/mod v0.32.0 // indirect
golang.org/x/net v0.49.0 // indirect
golang.org/x/sync v0.19.0 // indirect
golang.org/x/sys v0.41.0 // indirect
golang.org/x/text v0.34.0 // indirect
golang.org/x/time v0.14.0 // indirect
golang.org/x/tools v0.41.0 // indirect
golang.org/x/mod v0.34.0 // indirect
golang.org/x/net v0.52.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/sys v0.42.0 // indirect
golang.org/x/text v0.35.0 // indirect
golang.org/x/time v0.15.0 // indirect
golang.org/x/tools v0.43.0 // indirect
google.golang.org/protobuf v1.36.11 // indirect
lukechampine.com/blake3 v1.4.1 // indirect
modernc.org/libc v1.66.8 // indirect
Expand Down
Loading
Loading