Skip to content

Commit a1a4449

Browse files
committed
milestone: tasks/pdp compiles under CGO_ENABLED=0
The CGo carveout is complete. Updated go.mod replace pin to the finished fork commit e6d5dc8 (Reiers/curio integ/task-pdp-pure-go). Verification: $ CGO_ENABLED=0 go build ./internal/curiowire/ (clean exit, no errors) internal/curiowire imports tasks/pdp purely as a smoke test; the full transitive closure now compiles under pure-Go. tasks/pdp's PDP v1 protocol logic, tasks/pdpv0's PDP v0 protocol logic, harmonytask internal layers, lib/paths, lib/ffi (structural surface only), lib/ffiselect (WithLogCtx only), and ~25 supporting packages all build clean. Sealing-pipeline code paths (lib/ffi/sdr_funcs.go, snap_funcs.go, scrub_commr.go, cuzk_funcs.go, lib/ffiselect/ffiselect.go, lib/ffiselect/ffidirect/ffi-direct.go, four CGo methods on lib/paths/*Local) are gated behind //go:build cgo via the Reiers/curio fork. Under !cgo they're absent from the compile unit; non-cgo companions provide just the structural types PDP needs. curio-core probe binary (Lantern embedding path) still works: $ /tmp/cc-bin version curio-core 0.0.1-prealpha Next: harmonyquery -> SQLite port for the PDP-relevant migrations (Day 4-5), then PDP test port (Day 6-7).
1 parent 0efb5b6 commit a1a4449

2 files changed

Lines changed: 130 additions & 32 deletions

File tree

go.mod

Lines changed: 61 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,44 @@ module github.com/Reiers/curio-core
33
go 1.26
44

55
require (
6+
github.com/BurntSushi/toml v1.6.0
67
github.com/Reiers/lantern v1.2.2-0.20260522222332-9177a99e6581
8+
github.com/docker/go-units v0.5.0
9+
github.com/dustin/go-humanize v1.0.1
10+
github.com/ethereum/go-ethereum v1.17.2
711
github.com/filecoin-project/curio v1.28.2-0.20260522154309-2153109777fa
12+
github.com/filecoin-project/filecoin-ffi v1.36.0
13+
github.com/filecoin-project/go-address v1.2.0
14+
github.com/filecoin-project/go-bitfield v0.2.4
15+
github.com/filecoin-project/go-fil-commcid v0.3.1
16+
github.com/filecoin-project/go-jsonrpc v0.10.1
17+
github.com/filecoin-project/go-padreader v0.0.1
18+
github.com/filecoin-project/go-state-types v0.18.0
19+
github.com/filecoin-project/lotus v1.36.0
20+
github.com/google/uuid v1.6.0
21+
github.com/gorilla/mux v1.8.1
22+
github.com/gorilla/websocket v1.5.3
23+
github.com/hako/durafmt v0.0.0-20210608085754-5c1018a4e16b
24+
github.com/hashicorp/go-multierror v1.1.1
25+
github.com/invopop/jsonschema v0.14.0
826
github.com/ipfs/go-cid v0.6.1
27+
github.com/ipfs/go-ipld-cbor v0.2.1
28+
github.com/ipfs/go-log/v2 v2.9.2
29+
github.com/libp2p/go-libp2p v0.48.0
30+
github.com/multiformats/go-multiaddr v0.16.1
31+
github.com/oklog/ulid v1.3.1
32+
github.com/samber/lo v1.53.0
33+
github.com/sirupsen/logrus v1.9.4
34+
github.com/snadrus/must v0.0.0-20250604233757-70ccf00931c3
35+
github.com/yugabyte/pgx/v5 v5.7.6-yb-1
36+
go.opencensus.io v0.24.0
37+
golang.org/x/sync v0.20.0
38+
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da
939
modernc.org/sqlite v1.50.1
1040
)
1141

1242
require (
1343
contrib.go.opencensus.io/exporter/prometheus v0.4.2 // indirect
14-
github.com/BurntSushi/toml v1.6.0 // indirect
1544
github.com/GeertJohan/go.incremental v1.0.0 // indirect
1645
github.com/GeertJohan/go.rice v1.0.3 // indirect
1746
github.com/KarpelesLab/reflink v1.0.2 // indirect
@@ -22,45 +51,47 @@ require (
2251
github.com/beorn7/perks v1.0.1 // indirect
2352
github.com/bits-and-blooms/bitset v1.24.4 // indirect
2453
github.com/buger/jsonparser v1.1.2 // indirect
54+
github.com/cespare/xxhash v1.1.0 // indirect
2555
github.com/cespare/xxhash/v2 v2.3.0 // indirect
56+
github.com/cilium/ebpf v0.9.1 // indirect
2657
github.com/consensys/gnark-crypto v0.20.1 // indirect
58+
github.com/containerd/cgroups v1.1.0 // indirect
59+
github.com/coreos/go-systemd/v22 v22.7.0 // indirect
60+
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
2761
github.com/crate-crypto/go-eth-kzg v1.5.0 // indirect
2862
github.com/curiostorage/harmonyquery v1.0.2 // indirect
2963
github.com/daaku/go.zipexe v1.0.2 // indirect
64+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
3065
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
3166
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.1 // indirect
3267
github.com/detailyang/go-fallocate v0.0.0-20180908115635-432fa640bd2e // indirect
68+
github.com/dgraph-io/badger/v2 v2.2007.4 // indirect
3369
github.com/dgraph-io/badger/v4 v4.5.1 // indirect
70+
github.com/dgraph-io/ristretto v0.2.0 // indirect
3471
github.com/dgraph-io/ristretto/v2 v2.1.0 // indirect
72+
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
3573
github.com/drand/drand/v2 v2.1.4 // indirect
3674
github.com/drand/kyber v1.3.2 // indirect
3775
github.com/drand/kyber-bls12381 v0.3.4 // indirect
38-
github.com/dustin/go-humanize v1.0.1 // indirect
3976
github.com/elastic/go-sysinfo v1.15.4 // indirect
4077
github.com/elastic/go-windows v1.0.2 // indirect
78+
github.com/elastic/gosigar v0.14.3 // indirect
4179
github.com/ethereum/c-kzg-4844/v2 v2.1.7 // indirect
42-
github.com/ethereum/go-ethereum v1.17.2 // indirect
43-
github.com/filecoin-project/filecoin-ffi v1.36.0 // indirect
44-
github.com/filecoin-project/go-address v1.2.0 // indirect
4580
github.com/filecoin-project/go-amt-ipld/v2 v2.1.0 // indirect
4681
github.com/filecoin-project/go-amt-ipld/v3 v3.1.1 // indirect
4782
github.com/filecoin-project/go-amt-ipld/v4 v4.4.0 // indirect
48-
github.com/filecoin-project/go-bitfield v0.2.4 // indirect
83+
github.com/filecoin-project/go-cbor-util v0.0.2 // indirect
4984
github.com/filecoin-project/go-clock v0.1.0 // indirect
5085
github.com/filecoin-project/go-commp-utils/v2 v2.1.0 // indirect
5186
github.com/filecoin-project/go-crypto v0.1.0 // indirect
5287
github.com/filecoin-project/go-data-segment v0.0.1 // indirect
5388
github.com/filecoin-project/go-f3 v0.8.13 // indirect
54-
github.com/filecoin-project/go-fil-commcid v0.3.1 // indirect
5589
github.com/filecoin-project/go-fil-commp-hashhash v0.4.0 // indirect
5690
github.com/filecoin-project/go-hamt-ipld v0.1.5 // indirect
5791
github.com/filecoin-project/go-hamt-ipld/v2 v2.0.0 // indirect
5892
github.com/filecoin-project/go-hamt-ipld/v3 v3.4.1 // indirect
59-
github.com/filecoin-project/go-jsonrpc v0.10.1 // indirect
6093
github.com/filecoin-project/go-keccak v0.1.0 // indirect
61-
github.com/filecoin-project/go-padreader v0.0.1 // indirect
62-
github.com/filecoin-project/go-state-types v0.18.0 // indirect
63-
github.com/filecoin-project/lotus v1.36.0 // indirect
94+
github.com/filecoin-project/go-statestore v0.2.0 // indirect
6495
github.com/filecoin-project/pubsub v1.0.0 // indirect
6596
github.com/filecoin-project/specs-actors v0.9.15 // indirect
6697
github.com/filecoin-project/specs-actors/v2 v2.3.6 // indirect
@@ -77,39 +108,38 @@ require (
77108
github.com/go-logr/logr v1.4.3 // indirect
78109
github.com/go-logr/stdr v1.2.2 // indirect
79110
github.com/go-ole/go-ole v1.3.0 // indirect
111+
github.com/godbus/dbus/v5 v5.1.0 // indirect
80112
github.com/gogo/protobuf v1.3.2 // indirect
81113
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
82114
github.com/golang/mock v1.6.0 // indirect
115+
github.com/golang/protobuf v1.5.4 // indirect
83116
github.com/golang/snappy v1.0.0 // indirect
84117
github.com/google/flatbuffers v24.12.23+incompatible // indirect
85118
github.com/google/go-cmp v0.7.0 // indirect
86-
github.com/google/uuid v1.6.0 // indirect
87-
github.com/gorilla/mux v1.8.1 // indirect
88-
github.com/gorilla/websocket v1.5.3 // indirect
89119
github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect
90120
github.com/hashicorp/errwrap v1.1.0 // indirect
91-
github.com/hashicorp/go-multierror v1.1.1 // indirect
92121
github.com/hashicorp/golang-lru/arc/v2 v2.0.7 // indirect
93122
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
94123
github.com/holiman/uint256 v1.3.2 // indirect
95124
github.com/icza/backscanner v0.0.0-20241124160932-dff01ac50250 // indirect
96-
github.com/invopop/jsonschema v0.14.0 // indirect
97125
github.com/ipfs/bbloom v0.1.0 // indirect
98126
github.com/ipfs/boxo v0.39.0 // indirect
99127
github.com/ipfs/go-block-format v0.2.3 // indirect
100128
github.com/ipfs/go-cidutil v0.1.1 // indirect
101129
github.com/ipfs/go-datastore v0.9.1 // indirect
130+
github.com/ipfs/go-ds-leveldb v0.5.2 // indirect
131+
github.com/ipfs/go-ds-measure v0.2.2 // indirect
102132
github.com/ipfs/go-dsqueue v0.2.0 // indirect
103-
github.com/ipfs/go-ipld-cbor v0.2.1 // indirect
133+
github.com/ipfs/go-fs-lock v0.1.1 // indirect
104134
github.com/ipfs/go-ipld-format v0.6.3 // indirect
105135
github.com/ipfs/go-ipld-legacy v0.3.0 // indirect
106136
github.com/ipfs/go-log v1.0.5 // indirect
107-
github.com/ipfs/go-log/v2 v2.9.2 // indirect
108137
github.com/ipfs/go-metrics-interface v0.3.0 // indirect
109138
github.com/ipld/go-car v0.6.3 // indirect
110139
github.com/ipld/go-car/v2 v2.16.0 // indirect
111140
github.com/ipld/go-codec-dagpb v1.7.0 // indirect
112141
github.com/ipld/go-ipld-prime v0.23.0 // indirect
142+
github.com/ipni/go-libipni v0.7.7 // indirect
113143
github.com/jackc/pgerrcode v0.0.0-20250907135507-afb5586c32a6 // indirect
114144
github.com/jackc/pgpassfile v1.0.0 // indirect
115145
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
@@ -120,9 +150,10 @@ require (
120150
github.com/kilic/bls12-381 v0.1.1-0.20220929213557-ca162e8a70f4 // indirect
121151
github.com/klauspost/compress v1.18.5 // indirect
122152
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
153+
github.com/kr/pretty v0.3.1 // indirect
154+
github.com/kr/text v0.2.0 // indirect
123155
github.com/libp2p/go-buffer-pool v0.1.0 // indirect
124156
github.com/libp2p/go-flow-metrics v0.3.0 // indirect
125-
github.com/libp2p/go-libp2p v0.48.0 // indirect
126157
github.com/libp2p/go-libp2p-pubsub v0.15.0 // indirect
127158
github.com/libp2p/go-msgio v0.3.0 // indirect
128159
github.com/magefile/mage v1.17.1 // indirect
@@ -132,7 +163,6 @@ require (
132163
github.com/mr-tron/base58 v1.3.0 // indirect
133164
github.com/multiformats/go-base32 v0.1.0 // indirect
134165
github.com/multiformats/go-base36 v0.2.0 // indirect
135-
github.com/multiformats/go-multiaddr v0.16.1 // indirect
136166
github.com/multiformats/go-multiaddr-dns v0.5.0 // indirect
137167
github.com/multiformats/go-multiaddr-fmt v0.1.0 // indirect
138168
github.com/multiformats/go-multibase v0.3.0 // indirect
@@ -143,11 +173,12 @@ require (
143173
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
144174
github.com/ncruces/go-strftime v1.0.0 // indirect
145175
github.com/nkovacs/streamquote v1.1.0 // indirect
146-
github.com/oklog/ulid v1.3.1 // indirect
176+
github.com/opencontainers/runtime-spec v1.2.1 // indirect
147177
github.com/opentracing/opentracing-go v1.2.0 // indirect
148178
github.com/pb33f/ordered-map/v2 v2.3.1 // indirect
149179
github.com/petar/GoLLRB v0.0.0-20210522233825-ae3b015fd3e9 // indirect
150180
github.com/pkg/errors v0.9.1 // indirect
181+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
151182
github.com/polydawn/refmt v0.89.1-0.20231129105047-37766d95467a // indirect
152183
github.com/prometheus/client_golang v1.23.2 // indirect
153184
github.com/prometheus/client_model v0.6.2 // indirect
@@ -158,27 +189,29 @@ require (
158189
github.com/puzpuzpuz/xsync/v2 v2.5.1 // indirect
159190
github.com/raulk/clock v1.1.0 // indirect
160191
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
161-
github.com/samber/lo v1.53.0 // indirect
192+
github.com/rogpeppe/go-internal v1.14.1 // indirect
193+
github.com/russross/blackfriday/v2 v2.1.0 // indirect
162194
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
163-
github.com/snadrus/must v0.0.0-20250604233757-70ccf00931c3 // indirect
164195
github.com/spaolacci/murmur3 v1.1.0 // indirect
196+
github.com/stretchr/testify v1.11.1 // indirect
165197
github.com/supranational/blst v0.3.16 // indirect
198+
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
166199
github.com/tklauser/go-sysconf v0.3.15 // indirect
167200
github.com/tklauser/numcpus v0.10.0 // indirect
168201
github.com/triplewz/poseidon v0.0.2 // indirect
202+
github.com/urfave/cli/v2 v2.27.7 // indirect
169203
github.com/valyala/bytebufferpool v1.0.0 // indirect
170204
github.com/valyala/fasttemplate v1.2.2 // indirect
171205
github.com/whyrusleeping/bencher v0.0.0-20190829221104-bb6607aa8bba // indirect
172206
github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11 // indirect
173207
github.com/whyrusleeping/cbor-gen v0.3.2-0.20250409092040-76796969edea // indirect
208+
github.com/xrash/smetrics v0.0.0-20250705151800-55b8f293f342 // indirect
174209
github.com/yugabyte/gocql v1.6.0-yb-1 // indirect
175-
github.com/yugabyte/pgx/v5 v5.7.6-yb-1 // indirect
176210
github.com/yusufpapurcu/wmi v1.2.4 // indirect
177211
gitlab.com/yawning/secp256k1-voi v0.0.0-20230925100816-f2616030848b // indirect
178212
gitlab.com/yawning/tuplehash v0.0.0-20230713102510-df83abbf9a02 // indirect
179213
go.dedis.ch/fixbuf v1.0.3 // indirect
180214
go.dedis.ch/kyber/v4 v4.0.0-pre2.0.20240924132404-4de33740016e // indirect
181-
go.opencensus.io v0.24.0 // indirect
182215
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
183216
go.opentelemetry.io/otel v1.43.0 // indirect
184217
go.opentelemetry.io/otel/exporters/prometheus v0.64.0 // indirect
@@ -190,24 +223,24 @@ require (
190223
go.uber.org/zap v1.28.0 // indirect
191224
go.yaml.in/yaml/v2 v2.4.4 // indirect
192225
go.yaml.in/yaml/v4 v4.0.0-rc.2 // indirect
226+
go4.org v0.0.0-20260112195520-a5071408f32f // indirect
193227
golang.org/x/crypto v0.51.0 // indirect
194228
golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f // indirect
195229
golang.org/x/mod v0.35.0 // indirect
196230
golang.org/x/net v0.53.0 // indirect
197-
golang.org/x/sync v0.20.0 // indirect
198231
golang.org/x/sys v0.44.0 // indirect
199232
golang.org/x/text v0.37.0 // indirect
200233
golang.org/x/tools v0.44.0 // indirect
201-
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect
202234
google.golang.org/genproto/googleapis/rpc v0.0.0-20260519071638-aa98bba5eb94 // indirect
203235
google.golang.org/grpc v1.79.3 // indirect
204236
google.golang.org/protobuf v1.36.11 // indirect
205237
gopkg.in/inf.v0 v0.9.1 // indirect
238+
gopkg.in/yaml.v3 v3.0.1 // indirect
206239
howett.net/plist v1.0.1 // indirect
207240
lukechampine.com/blake3 v1.4.1 // indirect
208241
modernc.org/libc v1.72.3 // indirect
209242
modernc.org/mathutil v1.7.1 // indirect
210243
modernc.org/memory v1.11.0 // indirect
211244
)
212245

213-
replace github.com/filecoin-project/curio => github.com/Reiers/curio v1.27.3-0.20260522223931-ee463de5dd3b
246+
replace github.com/filecoin-project/curio => github.com/Reiers/curio v1.27.3-0.20260522230103-e6d5dc8b8852

0 commit comments

Comments
 (0)