Spec URL: https://download.copr.fedorainfracloud.org/results/herald/juicefs/epel-9-x86_64/05843243-juicefs/juicefs.spec SRPM URL: https://download.copr.fedorainfracloud.org/results/herald/juicefs/epel-9-x86_64/05843243-juicefs/juicefs-1.0.4-1.el9.src.rpm COPR URL: https://copr.fedorainfracloud.org/coprs/herald/juicefs/ Upstream Github: https://github.com/juicedata/juicefs Description: JuiceFS is a high-performance POSIX file system released under Apache License 2.0, particularly designed for the cloud-native environment. The data, stored via JuiceFS, will be persisted in object storage (e.g. Amazon S3), and the corresponding metadata can be persisted in various database engines such as Redis, MySQL, and TiKV based on the scenarios and requirements. With JuiceFS, massive cloud storage can be directly connected to big data, machine learning, artificial intelligence, and various application platforms in production environments. Without modifying code, the massive cloud storage can be used as efficiently as local storage. Fedora Account System Username: herald This is my first package and I need a sponsor. I'm not sure if any additional information is needed. If so, please feel free to provide me with feedback. Thank you.
Thanks for making this available. Downloads are not permitted for Fedora builds. The mock build therefore failed. Ideally, all required other programs should be packaged, but if required can be bundled, see https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/#_dependencies As you are looking to be come a packager, it may be helpful to do a few informal reviews, in particular of Go packages this will also help you determine what is required. Log output below. + cd juicefs-1.0.4 + make -j2 go version go version go1.20.4 linux/arm64 go build -ldflags="-s -w" -o juicefs . go: downloading github.com/mattn/go-isatty v0.0.14 go: downloading github.com/sirupsen/logrus v1.9.0 go: downloading github.com/juicedata/mpb/v7 v7.0.4-0.20220719014258-68df1356cfba go: downloading github.com/erikdubbelboer/gspt v0.0.0-20210805194459-ce36a5128377 go: downloading github.com/google/gops v0.3.22 go: downloading github.com/google/uuid v1.3.0 go: downloading github.com/juicedata/godaemon v0.0.0-20210629045518-3da5144a127d go: downloading github.com/minio/cli v1.22.0 go: downloading github.com/juicedata/minio v0.0.0-20220913070254-47325cb1d5fe go: downloading github.com/prometheus/client_golang v1.11.0 go: downloading github.com/pyroscope-io/client v0.2.1 go: downloading github.com/urfave/cli/v2 v2.4.0 go: downloading github.com/juju/ratelimit v1.0.1 go: downloading github.com/DataDog/zstd v1.5.0 go: downloading github.com/hungys/go-lz4 v0.0.0-20170805124057-19ff7f07f099 go: downloading golang.org/x/net v0.7.0 go: downloading github.com/minio/minio-go v6.0.14+incompatible go: downloading github.com/juicedata/go-fuse/v2 v2.1.1-0.20221212033224-ed3172586347 go: downloading github.com/hashicorp/consul/api v1.12.0 go: downloading github.com/hashicorp/go-hclog v1.2.0 go: downloading github.com/dgraph-io/badger/v3 v3.2103.5 go: downloading github.com/go-redis/redis/v8 v8.11.5 go: downloading github.com/go-sql-driver/mysql v1.6.0 go: downloading github.com/google/btree v1.1.2 go: downloading github.com/lib/pq v1.8.0 go: downloading github.com/mattn/go-sqlite3 v2.0.1+incompatible go: downloading github.com/pingcap/log v1.1.1-0.20221015072633-39906604fb81 go: downloading github.com/pkg/errors v0.9.1 go: downloading github.com/tikv/client-go/v2 v2.0.2 go: downloading go.etcd.io/etcd/client/v3 v3.5.2 go: downloading go.etcd.io/etcd v3.3.27+incompatible go: downloading golang.org/x/sys v0.5.0 go: downloading gitea.com/davies/xorm v1.0.8-0.20220528043536-552d84d1b34a go: downloading cloud.google.com/go/compute v1.5.0 go: downloading cloud.google.com/go/storage v1.21.0 go: downloading github.com/Arvintian/scs-go-sdk v1.1.0 go: downloading github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0 go: downloading github.com/IBM/ibm-cos-sdk-go v1.8.0 go: downloading github.com/NetEase-Object-Storage/nos-golang-sdk v0.0.0-20191125093154-335c2b73bf6b go: downloading github.com/aliyun/aliyun-oss-go-sdk v2.2.2+incompatible go: downloading github.com/aws/aws-sdk-go v1.43.26 go: downloading github.com/baidubce/bce-sdk-go v0.9.111 go: downloading github.com/colinmarc/hdfs/v2 v2.3.0 go: downloading github.com/juicedata/huaweicloud-sdk-go-obs v3.22.12-0.20230228031208-386e87b5c091+incompatible go: downloading github.com/jcmturner/gokrb5/v8 v8.4.2 go: downloading github.com/ks3sdklib/aws-sdk-go v1.1.4 go: downloading github.com/ncw/swift v1.0.53 go: downloading github.com/pkg/sftp v1.13.4 go: downloading github.com/qingstor/qingstor-sdk-go/v4 v4.4.0 go: downloading github.com/qiniu/go-sdk/v7 v7.11.1 go: downloading github.com/studio-b12/gowebdav v0.0.0-20220128162035-c7b1ff8a5e62 go: downloading github.com/tencentyun/cos-go-sdk-v5 v0.7.34 go: downloading github.com/upyun/go-sdk/v3 v3.0.2 go: downloading github.com/viki-org/dnscache v0.0.0-20130720023526-c70c1f23c5d8 go: downloading github.com/volcengine/ve-tos-golang-sdk/v2 v2.5.1 go: downloading github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a go: downloading golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90 go: downloading golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 go: downloading golang.org/x/term v0.5.0 go: downloading google.golang.org/api v0.70.0 go: downloading gopkg.in/kothar/go-backblaze.v0 v0.0.0-20210124194846-35409b867216 go: downloading github.com/prometheus/client_model v0.2.0 pkg/object/gs.go:30:2: unrecognized import path "cloud.google.com/go/compute": https fetch: Get "https://cloud.google.com/go/compute?go-get=1": dial tcp: lookup cloud.google.com: Temporary failure in name resolution pkg/object/gs.go:31:2: unrecognized import path "cloud.google.com/go/storage": https fetch: Get "https://cloud.google.com/go/storage?go-get=1": dial tcp: lookup cloud.google.com: Temporary failure in name resolution pkg/object/scs.go:33:2: reading github.com/Arvintian/scs-go-sdk/go.mod at revision v1.1.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/9342a83b2658aba0a678a77e933e3fa85ca8d328a36b2a2d4a17a5596daf2d1d: exit status 128: fatal: unable to access 'https://github.com/Arvintian/scs-go-sdk/': Could not resolve host: github.com pkg/object/scs.go:34:2: reading github.com/Arvintian/scs-go-sdk/go.mod at revision v1.1.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/9342a83b2658aba0a678a77e933e3fa85ca8d328a36b2a2d4a17a5596daf2d1d: exit status 128: fatal: unable to access 'https://github.com/Arvintian/scs-go-sdk/': Could not resolve host: github.com pkg/object/azure.go:30:2: reading github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/go.mod at revision sdk/storage/azblob/v0.3.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/d31d6145676ed3066ce573a8198f326dea5be45a43b3d8f41ce7787fd71d66b3: exit status 128: fatal: unable to access 'https://github.com/Azure/azure-sdk-for-go/': Could not resolve host: github.com pkg/compress/compress.go:23:2: reading github.com/DataDog/zstd/go.mod at revision v1.5.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/ae2b0ea1232707269b0d0a934f93b406347d28c2f21f76e0794d138645856bf5: exit status 128: fatal: unable to access 'https://github.com/DataDog/zstd/': Could not resolve host: github.com pkg/object/ibmcos.go:34:2: reading github.com/IBM/ibm-cos-sdk-go/go.mod at revision v1.8.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/c57e924022601765e3e6fa9e8efc14f5f5dad248feea031e0a31bd5d1d569555: exit status 128: fatal: unable to access 'https://github.com/IBM/ibm-cos-sdk-go/': Could not resolve host: github.com pkg/object/ibmcos.go:35:2: reading github.com/IBM/ibm-cos-sdk-go/go.mod at revision v1.8.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/c57e924022601765e3e6fa9e8efc14f5f5dad248feea031e0a31bd5d1d569555: exit status 128: fatal: unable to access 'https://github.com/IBM/ibm-cos-sdk-go/': Could not resolve host: github.com pkg/object/ibmcos.go:36:2: reading github.com/IBM/ibm-cos-sdk-go/go.mod at revision v1.8.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/c57e924022601765e3e6fa9e8efc14f5f5dad248feea031e0a31bd5d1d569555: exit status 128: fatal: unable to access 'https://github.com/IBM/ibm-cos-sdk-go/': Could not resolve host: github.com pkg/object/ibmcos.go:37:2: reading github.com/IBM/ibm-cos-sdk-go/go.mod at revision v1.8.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/c57e924022601765e3e6fa9e8efc14f5f5dad248feea031e0a31bd5d1d569555: exit status 128: fatal: unable to access 'https://github.com/IBM/ibm-cos-sdk-go/': Could not resolve host: github.com pkg/object/ibmcos.go:38:2: reading github.com/IBM/ibm-cos-sdk-go/go.mod at revision v1.8.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/c57e924022601765e3e6fa9e8efc14f5f5dad248feea031e0a31bd5d1d569555: exit status 128: fatal: unable to access 'https://github.com/IBM/ibm-cos-sdk-go/': Could not resolve host: github.com pkg/object/nos.go:33:2: github.com/NetEase-Object-Storage/nos-golang-sdk.0-20191125093154-335c2b73bf6b: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/26c82001938f9a99a21b21964fe33955adc68fae8177dfbd18ff6a53254ebe04: exit status 128: fatal: unable to access 'https://github.com/NetEase-Object-Storage/nos-golang-sdk/': Could not resolve host: github.com pkg/object/nos.go:34:2: github.com/NetEase-Object-Storage/nos-golang-sdk.0-20191125093154-335c2b73bf6b: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/26c82001938f9a99a21b21964fe33955adc68fae8177dfbd18ff6a53254ebe04: exit status 128: fatal: unable to access 'https://github.com/NetEase-Object-Storage/nos-golang-sdk/': Could not resolve host: github.com pkg/object/nos.go:35:2: github.com/NetEase-Object-Storage/nos-golang-sdk.0-20191125093154-335c2b73bf6b: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/26c82001938f9a99a21b21964fe33955adc68fae8177dfbd18ff6a53254ebe04: exit status 128: fatal: unable to access 'https://github.com/NetEase-Object-Storage/nos-golang-sdk/': Could not resolve host: github.com pkg/object/nos.go:36:2: github.com/NetEase-Object-Storage/nos-golang-sdk.0-20191125093154-335c2b73bf6b: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/26c82001938f9a99a21b21964fe33955adc68fae8177dfbd18ff6a53254ebe04: exit status 128: fatal: unable to access 'https://github.com/NetEase-Object-Storage/nos-golang-sdk/': Could not resolve host: github.com pkg/object/nos.go:37:2: github.com/NetEase-Object-Storage/nos-golang-sdk.0-20191125093154-335c2b73bf6b: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/26c82001938f9a99a21b21964fe33955adc68fae8177dfbd18ff6a53254ebe04: exit status 128: fatal: unable to access 'https://github.com/NetEase-Object-Storage/nos-golang-sdk/': Could not resolve host: github.com pkg/object/oss.go:36:2: reading github.com/aliyun/aliyun-oss-go-sdk/go.mod at revision v2.2.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/4763d187cbffa5fc742d0f26e095c35a2d7ed19c3336e1a297f0f65dbe6ab23e: exit status 128: fatal: unable to access 'https://github.com/aliyun/aliyun-oss-go-sdk/': Could not resolve host: github.com pkg/object/eos.go:28:2: reading github.com/aws/aws-sdk-go/go.mod at revision v1.43.26: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/b3c0b920408a036a00409211751cef8a0f1a5493ca7145bea33987ab25941e1c: exit status 128: fatal: unable to access 'https://github.com/aws/aws-sdk-go/': Could not resolve host: github.com pkg/object/s3.go:36:2: reading github.com/aws/aws-sdk-go/go.mod at revision v1.43.26: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/b3c0b920408a036a00409211751cef8a0f1a5493ca7145bea33987ab25941e1c: exit status 128: fatal: unable to access 'https://github.com/aws/aws-sdk-go/': Could not resolve host: github.com pkg/object/eos.go:29:2: reading github.com/aws/aws-sdk-go/go.mod at revision v1.43.26: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/b3c0b920408a036a00409211751cef8a0f1a5493ca7145bea33987ab25941e1c: exit status 128: fatal: unable to access 'https://github.com/aws/aws-sdk-go/': Could not resolve host: github.com pkg/object/s3.go:38:2: reading github.com/aws/aws-sdk-go/go.mod at revision v1.43.26: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/b3c0b920408a036a00409211751cef8a0f1a5493ca7145bea33987ab25941e1c: exit status 128: fatal: unable to access 'https://github.com/aws/aws-sdk-go/': Could not resolve host: github.com pkg/object/eos.go:30:2: reading github.com/aws/aws-sdk-go/go.mod at revision v1.43.26: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/b3c0b920408a036a00409211751cef8a0f1a5493ca7145bea33987ab25941e1c: exit status 128: fatal: unable to access 'https://github.com/aws/aws-sdk-go/': Could not resolve host: github.com pkg/object/eos.go:31:2: reading github.com/aws/aws-sdk-go/go.mod at revision v1.43.26: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/b3c0b920408a036a00409211751cef8a0f1a5493ca7145bea33987ab25941e1c: exit status 128: fatal: unable to access 'https://github.com/aws/aws-sdk-go/': Could not resolve host: github.com pkg/object/bos.go:31:2: reading github.com/baidubce/bce-sdk-go/go.mod at revision v0.9.111: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/4653aac77811dc5774ad2a901e864d4efb23581fe70608483b1c4f145e8cc55d: exit status 128: fatal: unable to access 'https://github.com/baidubce/bce-sdk-go/': Could not resolve host: github.com pkg/object/bos.go:32:2: reading github.com/baidubce/bce-sdk-go/go.mod at revision v0.9.111: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/4653aac77811dc5774ad2a901e864d4efb23581fe70608483b1c4f145e8cc55d: exit status 128: fatal: unable to access 'https://github.com/baidubce/bce-sdk-go/': Could not resolve host: github.com pkg/object/bos.go:33:2: reading github.com/baidubce/bce-sdk-go/go.mod at revision v0.9.111: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/4653aac77811dc5774ad2a901e864d4efb23581fe70608483b1c4f145e8cc55d: exit status 128: fatal: unable to access 'https://github.com/baidubce/bce-sdk-go/': Could not resolve host: github.com pkg/object/hdfs.go:35:2: reading github.com/colinmarc/hdfs/go.mod at revision v2.3.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/57b9b778c66c6ef1b08c7e9a4fdc9c3831ba5f82be4858b369bfdd3de3b31cbf: exit status 128: fatal: unable to access 'https://github.com/colinmarc/hdfs/': Could not resolve host: github.com pkg/object/hdfs.go:36:2: reading github.com/colinmarc/hdfs/go.mod at revision v2.3.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/57b9b778c66c6ef1b08c7e9a4fdc9c3831ba5f82be4858b369bfdd3de3b31cbf: exit status 128: fatal: unable to access 'https://github.com/colinmarc/hdfs/': Could not resolve host: github.com pkg/meta/tkv_badger.go:26:2: reading github.com/dgraph-io/badger/go.mod at revision v3.2103.5: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/ad2441c6489d183c08b1cfe77ea03d7b9ba876140ca3b0429c09d51328fd3c8d: exit status 128: fatal: unable to access 'https://github.com/dgraph-io/badger/': Could not resolve host: github.com cmd/main.go:27:2: github.com/erikdubbelboer/gspt.0-20210805194459-ce36a5128377: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/5917482caa9b2164cd8bd2fc7cffe24b4fd536945a8b1314d75b597764560b1d: exit status 128: fatal: unable to access 'https://github.com/erikdubbelboer/gspt/': Could not resolve host: github.com pkg/object/redis.go:36:2: reading github.com/go-redis/redis/go.mod at revision v8.11.5: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/4b576b14b4fdf5e21c72510d33e8fcad02233b8b3794997162a401e63726821a: exit status 128: fatal: unable to access 'https://github.com/go-redis/redis/': Could not resolve host: github.com pkg/object/sql.go:33:2: reading github.com/go-sql-driver/mysql/go.mod at revision v1.6.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/825229b4e0cfd56be471a970fb75ba5dcb56cd0b82738f309ccb84fc69628714: exit status 128: fatal: unable to access 'https://github.com/go-sql-driver/mysql/': Could not resolve host: github.com pkg/meta/tkv_mem.go:29:2: reading github.com/google/btree/go.mod at revision v1.1.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/5967e6160a5ba1a2ffe2652a1a1afa34325602c711d993e29deb99e9d1d8b229: exit status 128: fatal: unable to access 'https://github.com/google/btree/': Could not resolve host: github.com cmd/main.go:28:2: reading github.com/google/gops/go.mod at revision v0.3.22: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/3872f5b79c274f0881845dd5061fae859ef64adfec6a1a6b0790e5a1a2360408: exit status 128: fatal: unable to access 'https://github.com/google/gops/': Could not resolve host: github.com cmd/format.go:39:2: reading github.com/google/uuid/go.mod at revision v1.3.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/c3a7687c436b44e1c0c389b1d5515300d44b6949685144fd082c00abc5f758a4: exit status 128: fatal: unable to access 'https://github.com/google/uuid/': Could not resolve host: github.com pkg/fuse/context.go:28:2: github.com/juicedata/go-fuse/v2.1-0.20221212033224-ed3172586347: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/7006df4ac05e4dd001dfa28a0f0252f39d0607aa60a7e0526bd31041cb951e38: exit status 128: fatal: unable to access 'https://github.com/juicedata/go-fuse/': Could not resolve host: github.com pkg/metric/metrics.go:26:2: reading github.com/hashicorp/consul/api/go.mod at revision api/v1.12.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/3b32abd765c055e8e34032d314be76dd548e10a3ca96aef4091adff372254b07: exit status 128: fatal: unable to access 'https://github.com/hashicorp/consul/': Could not resolve host: github.com pkg/metric/metrics.go:27:2: reading github.com/hashicorp/go-hclog/go.mod at revision v1.2.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/4a8ed8e0f2acc737b6cfeec597170449ae0675eedfe6e8679ebf3792960604d2: exit status 128: fatal: unable to access 'https://github.com/hashicorp/go-hclog/': Could not resolve host: github.com pkg/object/obs.go:36:2: github.com/juicedata/huaweicloud-sdk-go-obs.12-0.20230228031208-386e87b5c091+incompatible: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/e17ca0ac7758ec0e7bfb0f63a2e1eab519006b16804b6763b82afd485814e234: exit status 128: fatal: unable to access 'https://github.com/juicedata/huaweicloud-sdk-go-obs/': Could not resolve host: github.com pkg/compress/compress.go:24:2: github.com/hungys/go-lz4.0-20170805124057-19ff7f07f099: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/caccfd27edebb2cab327b8fd2c22740ed3c00bd057c27f584c6f88e9327a8f4d: exit status 128: fatal: unable to access 'https://github.com/hungys/go-lz4/': Could not resolve host: github.com pkg/object/hdfs_kerberos.go:15:2: reading github.com/jcmturner/gokrb5/go.mod at revision v8.4.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/bba939b5475caafa904aaac351ce5a7d68725d89419539b2419795b26eeb6673: exit status 128: fatal: unable to access 'https://github.com/jcmturner/gokrb5/': Could not resolve host: github.com pkg/object/hdfs_kerberos.go:16:2: reading github.com/jcmturner/gokrb5/go.mod at revision v8.4.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/bba939b5475caafa904aaac351ce5a7d68725d89419539b2419795b26eeb6673: exit status 128: fatal: unable to access 'https://github.com/jcmturner/gokrb5/': Could not resolve host: github.com pkg/object/hdfs_kerberos.go:17:2: reading github.com/jcmturner/gokrb5/go.mod at revision v8.4.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/bba939b5475caafa904aaac351ce5a7d68725d89419539b2419795b26eeb6673: exit status 128: fatal: unable to access 'https://github.com/jcmturner/gokrb5/': Could not resolve host: github.com cmd/mount_unix.go:32:2: github.com/juicedata/godaemon.0-20210629045518-3da5144a127d: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/ce378247f1751a8a05d69569682ac8019dc271433ca3b77b31d5afedfe0f481b: exit status 128: fatal: unable to access 'https://github.com/juicedata/godaemon/': Could not resolve host: github.com pkg/chunk/cached_store.go:34:2: reading github.com/juju/ratelimit/go.mod at revision v1.0.1: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/50c6c9c4e02b3c865b3881a11cf48f2075bf1b22dcdf51412e0f24e5df8dd21f: exit status 128: fatal: unable to access 'https://github.com/juju/ratelimit/': Could not resolve host: github.com pkg/object/ks3.go:36:2: reading github.com/ks3sdklib/aws-sdk-go/go.mod at revision v1.1.4: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/b2340c625029a6c3955abe346c4f1724fc2527c4a9f4aa3eb61643254dd377b2: exit status 128: fatal: unable to access 'https://github.com/ks3sdklib/aws-sdk-go/': Could not resolve host: github.com pkg/object/ks3.go:37:2: reading github.com/ks3sdklib/aws-sdk-go/go.mod at revision v1.1.4: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/b2340c625029a6c3955abe346c4f1724fc2527c4a9f4aa3eb61643254dd377b2: exit status 128: fatal: unable to access 'https://github.com/ks3sdklib/aws-sdk-go/': Could not resolve host: github.com pkg/object/ks3.go:38:2: reading github.com/ks3sdklib/aws-sdk-go/go.mod at revision v1.1.4: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/b2340c625029a6c3955abe346c4f1724fc2527c4a9f4aa3eb61643254dd377b2: exit status 128: fatal: unable to access 'https://github.com/ks3sdklib/aws-sdk-go/': Could not resolve host: github.com pkg/object/ks3.go:39:2: reading github.com/ks3sdklib/aws-sdk-go/go.mod at revision v1.1.4: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/b2340c625029a6c3955abe346c4f1724fc2527c4a9f4aa3eb61643254dd377b2: exit status 128: fatal: unable to access 'https://github.com/ks3sdklib/aws-sdk-go/': Could not resolve host: github.com pkg/object/sql.go:34:2: reading github.com/lib/pq/go.mod at revision v1.8.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/6c68f1e99762541dedc16bb282120793c0c7856d1615a0bc98f71833d509620e: exit status 128: fatal: unable to access 'https://github.com/lib/pq/': Could not resolve host: github.com pkg/utils/progress.go:22:2: reading github.com/mattn/go-isatty/go.mod at revision v0.0.14: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/bdb8c6288a8e64a77296034f2952a351f8e87de621b3ba63a03bc5f4151e39b1: exit status 128: fatal: unable to access 'https://github.com/mattn/go-isatty/': Could not resolve host: github.com pkg/object/sql.go:35:2: reading github.com/mattn/go-sqlite3/go.mod at revision v2.0.1: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/e0a410bfa1f8edcbd94bed4e5ed7a4f0c7cf6a85143cece235ecd416b8380cb9: exit status 128: fatal: unable to access 'https://github.com/mattn/go-sqlite3/': Could not resolve host: github.com cmd/gateway.go:36:2: reading github.com/minio/cli/go.mod at revision v1.22.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/57ee13a88165b82aef927df10c988df0578f3f299256221571098e7c7674330d: exit status 128: fatal: unable to access 'https://github.com/minio/cli/': Could not resolve host: github.com pkg/gateway/gateway.go:34:2: reading github.com/minio/minio-go/go.mod at revision v6.0.14: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/df6be319c06f14a8fc8d169534e8b283b4230a8cc305bcd4f83fa004090062b0: exit status 128: fatal: unable to access 'https://github.com/minio/minio-go/': Could not resolve host: github.com pkg/gateway/gateway.go:35:2: github.com/juicedata/minio.0-20220913070254-47325cb1d5fe: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/85e37dd3a2328504b28572a0f6e10916cfec246e499c7ecfe15a3713d33b1697: exit status 128: fatal: unable to access 'https://github.com/juicedata/minio/': Could not resolve host: github.com cmd/gateway.go:38:2: github.com/juicedata/minio.0-20220913070254-47325cb1d5fe: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/85e37dd3a2328504b28572a0f6e10916cfec246e499c7ecfe15a3713d33b1697: exit status 128: fatal: unable to access 'https://github.com/juicedata/minio/': Could not resolve host: github.com pkg/object/swift.go:31:2: reading github.com/ncw/swift/go.mod at revision v1.0.53: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/ca669865d453cf7a43fd57b45c9ba01a8d344d6b2efc493fa2ee08f3dd2fe2ec: exit status 128: fatal: unable to access 'https://github.com/ncw/swift/': Could not resolve host: github.com pkg/object/tikv.go:33:2: github.com/pingcap/log.1-0.20221015072633-39906604fb81: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/1b760b1ada24e03ee79951c669e54e072b71606f41818bbadf0ff290a1e736de: exit status 128: fatal: unable to access 'https://github.com/pingcap/log/': Could not resolve host: github.com pkg/object/cos.go:33:2: reading github.com/pkg/errors/go.mod at revision v0.9.1: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/6d82bc6342f8104a35e27089637bd09e9cdb9402f044a75aeb6d5a73e50dad6c: exit status 128: fatal: unable to access 'https://github.com/pkg/errors/': Could not resolve host: github.com pkg/object/file_unix.go:29:2: reading github.com/pkg/sftp/go.mod at revision v1.13.4: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/74e1affce0467ac134276b4073f643881e0cb81f11fcefd0045fc639aae1e3d1: exit status 128: fatal: unable to access 'https://github.com/pkg/sftp/': Could not resolve host: github.com pkg/chunk/cached_store.go:35:2: reading github.com/prometheus/client_golang/go.mod at revision v1.11.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/6ffa6057942360db9e438bbc1bc03e3efd3ae1d41df4abeb5328ef376a815bfa: exit status 128: fatal: unable to access 'https://github.com/prometheus/client_golang/': Could not resolve host: github.com cmd/mount.go:36:2: reading github.com/prometheus/client_golang/go.mod at revision v1.11.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/6ffa6057942360db9e438bbc1bc03e3efd3ae1d41df4abeb5328ef376a815bfa: exit status 128: fatal: unable to access 'https://github.com/prometheus/client_golang/': Could not resolve host: github.com cmd/mount.go:37:2: reading github.com/prometheus/client_golang/go.mod at revision v1.11.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/6ffa6057942360db9e438bbc1bc03e3efd3ae1d41df4abeb5328ef376a815bfa: exit status 128: fatal: unable to access 'https://github.com/prometheus/client_golang/': Could not resolve host: github.com pkg/vfs/internal.go:34:2: reading github.com/prometheus/client_model/go.mod at revision v0.2.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/63d71ba58bfca47375ce28814cd0ff0681d5c0b4cb808994d911110f1e181cf6: exit status 128: fatal: unable to access 'https://github.com/prometheus/client_model/': Could not resolve host: github.com cmd/main.go:31:2: reading github.com/pyroscope-io/client/go.mod at revision v0.2.1: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/e574321b41c4e12e152fcd2ddf1e1b779fdb3b61a122bb7907b4e46905a1537c: exit status 128: fatal: unable to access 'https://github.com/pyroscope-io/client/': Could not resolve host: github.com pkg/object/qingstor.go:34:2: reading github.com/qingstor/qingstor-sdk-go/go.mod at revision v4.4.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/6205fd80e60432762d2554a9046a7755cdfe62a9ab0151baaa3009add9d32455: exit status 128: fatal: unable to access 'https://github.com/qingstor/qingstor-sdk-go/': Could not resolve host: github.com pkg/object/qingstor.go:35:2: reading github.com/qingstor/qingstor-sdk-go/go.mod at revision v4.4.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/6205fd80e60432762d2554a9046a7755cdfe62a9ab0151baaa3009add9d32455: exit status 128: fatal: unable to access 'https://github.com/qingstor/qingstor-sdk-go/': Could not resolve host: github.com pkg/object/qingstor.go:36:2: reading github.com/qingstor/qingstor-sdk-go/go.mod at revision v4.4.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/6205fd80e60432762d2554a9046a7755cdfe62a9ab0151baaa3009add9d32455: exit status 128: fatal: unable to access 'https://github.com/qingstor/qingstor-sdk-go/': Could not resolve host: github.com pkg/object/qiniu.go:35:2: reading github.com/qiniu/go-sdk/go.mod at revision v7.11.1: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/61408db3f331eba283b5c16da712f368cdf9c1a78e91b75a9618f2a12580a22c: exit status 128: fatal: unable to access 'https://github.com/qiniu/go-sdk/': Could not resolve host: github.com pkg/object/qiniu.go:36:2: reading github.com/qiniu/go-sdk/go.mod at revision v7.11.1: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/61408db3f331eba283b5c16da712f368cdf9c1a78e91b75a9618f2a12580a22c: exit status 128: fatal: unable to access 'https://github.com/qiniu/go-sdk/': Could not resolve host: github.com pkg/utils/logger.go:25:2: reading github.com/sirupsen/logrus/go.mod at revision v1.9.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/020616345f7c7f88438c217f9d0e26744bce721c80e4a28f93399a8a4cd2acf1: exit status 128: fatal: unable to access 'https://github.com/sirupsen/logrus/': Could not resolve host: github.com pkg/utils/logger_syslog.go:28:2: reading github.com/sirupsen/logrus/go.mod at revision v1.9.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/020616345f7c7f88438c217f9d0e26744bce721c80e4a28f93399a8a4cd2acf1: exit status 128: fatal: unable to access 'https://github.com/sirupsen/logrus/': Could not resolve host: github.com pkg/object/webdav.go:33:2: github.com/studio-b12/gowebdav.0-20220128162035-c7b1ff8a5e62: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/78c8efdf1ee98db5866bc06630bcfeaf40b1a13f5667dbd3d0a536af6d4438a4: exit status 128: fatal: unable to access 'https://github.com/studio-b12/gowebdav/': Could not resolve host: github.com pkg/object/cos.go:35:2: reading github.com/tencentyun/cos-go-sdk-v5/go.mod at revision v0.7.34: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/69dc7a8d19e9d343ddb61aeea22cc802e6e786b9efb129b624d21852364257d9: exit status 128: fatal: unable to access 'https://github.com/tencentyun/cos-go-sdk-v5/': Could not resolve host: github.com pkg/object/tikv.go:35:2: reading github.com/tikv/client-go/go.mod at revision v2.0.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/42ab838a6fa8ad5f6e26b9f307e76beec95f838bdb6236f6a371133b6e1c5aed: exit status 128: fatal: unable to access 'https://github.com/tikv/client-go/': Could not resolve host: github.com pkg/meta/tkv_tikv.go:32:2: reading github.com/tikv/client-go/go.mod at revision v2.0.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/42ab838a6fa8ad5f6e26b9f307e76beec95f838bdb6236f6a371133b6e1c5aed: exit status 128: fatal: unable to access 'https://github.com/tikv/client-go/': Could not resolve host: github.com pkg/meta/tkv_tikv.go:33:2: reading github.com/tikv/client-go/go.mod at revision v2.0.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/42ab838a6fa8ad5f6e26b9f307e76beec95f838bdb6236f6a371133b6e1c5aed: exit status 128: fatal: unable to access 'https://github.com/tikv/client-go/': Could not resolve host: github.com pkg/object/tikv.go:36:2: reading github.com/tikv/client-go/go.mod at revision v2.0.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/42ab838a6fa8ad5f6e26b9f307e76beec95f838bdb6236f6a371133b6e1c5aed: exit status 128: fatal: unable to access 'https://github.com/tikv/client-go/': Could not resolve host: github.com pkg/meta/tkv_tikv.go:34:2: reading github.com/tikv/client-go/go.mod at revision v2.0.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/42ab838a6fa8ad5f6e26b9f307e76beec95f838bdb6236f6a371133b6e1c5aed: exit status 128: fatal: unable to access 'https://github.com/tikv/client-go/': Could not resolve host: github.com pkg/meta/tkv_tikv.go:35:2: reading github.com/tikv/client-go/go.mod at revision v2.0.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/42ab838a6fa8ad5f6e26b9f307e76beec95f838bdb6236f6a371133b6e1c5aed: exit status 128: fatal: unable to access 'https://github.com/tikv/client-go/': Could not resolve host: github.com pkg/meta/tkv_tikv.go:36:2: reading github.com/tikv/client-go/go.mod at revision v2.0.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/42ab838a6fa8ad5f6e26b9f307e76beec95f838bdb6236f6a371133b6e1c5aed: exit status 128: fatal: unable to access 'https://github.com/tikv/client-go/': Could not resolve host: github.com pkg/object/upyun.go:31:2: reading github.com/upyun/go-sdk/go.mod at revision v3.0.2: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/963679f78565f4a62498fbd74c03252a61f89ed4044a340d9ebc2885f8e65574: exit status 128: fatal: unable to access 'https://github.com/upyun/go-sdk/': Could not resolve host: github.com pkg/sync/config.go:20:2: reading github.com/urfave/cli/go.mod at revision v2.4.0: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/cd035cbf143fea0a9690b9a3c2524525d3a6c2b7ca9943bb8508a66574675804: exit status 128: fatal: unable to access 'https://github.com/urfave/cli/': Could not resolve host: github.com pkg/utils/progress.go:23:2: github.com/juicedata/mpb/v7.4-0.20220719014258-68df1356cfba: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/95b7305bc783ce963aa772290a38bc10beb4c1c0724ff7aafb0fb1c0616a4ac2: exit status 128: fatal: unable to access 'https://github.com/juicedata/mpb/': Could not resolve host: github.com pkg/utils/progress.go:24:2: github.com/juicedata/mpb/v7.4-0.20220719014258-68df1356cfba: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/95b7305bc783ce963aa772290a38bc10beb4c1c0724ff7aafb0fb1c0616a4ac2: exit status 128: fatal: unable to access 'https://github.com/juicedata/mpb/': Could not resolve host: github.com pkg/object/restful.go:34:2: github.com/viki-org/dnscache.0-20130720023526-c70c1f23c5d8: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/f8671e8975f1422c5e3881ed5c2b1c8a1c6ba28a51c242b78a3f79c668470285: exit status 128: fatal: unable to access 'https://github.com/viki-org/dnscache/': Could not resolve host: github.com pkg/object/tos.go:31:2: reading github.com/volcengine/ve-tos-golang-sdk/go.mod at revision v2.5.1: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/86382a74bcb99648acc7fb4eab3f8763e18b10e4adee2f8eaa3c23286d848993: exit status 128: fatal: unable to access 'https://github.com/volcengine/ve-tos-golang-sdk/': Could not resolve host: github.com pkg/object/tos.go:32:2: reading github.com/volcengine/ve-tos-golang-sdk/go.mod at revision v2.5.1: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/86382a74bcb99648acc7fb4eab3f8763e18b10e4adee2f8eaa3c23286d848993: exit status 128: fatal: unable to access 'https://github.com/volcengine/ve-tos-golang-sdk/': Could not resolve host: github.com pkg/object/encrypt.go:34:2: github.com/youmark/pkcs8.0-20201027041543-1326539a0a0a: invalid version: git ls-remote -q origin in /builddir/go/pkg/mod/cache/vcs/59cc73b399b5254c513e5ab806d06bafa09554a4adb3458fdd306accd6976658: exit status 128: fatal: unable to access 'https://github.com/youmark/pkcs8/': Could not resolve host: github.com pkg/object/etcd.go:35:2: unrecognized import path "go.etcd.io/etcd/client/v3": https fetch: Get "https://go.etcd.io/etcd/client/v3?go-get=1": dial tcp: lookup go.etcd.io: Temporary failure in name resolution pkg/object/etcd.go:36:2: unrecognized import path "go.etcd.io/etcd": https fetch: Get "https://go.etcd.io/etcd?go-get=1": dial tcp: lookup go.etcd.io: Temporary failure in name resolution pkg/object/sftp.go:28:2: unrecognized import path "golang.org/x/crypto": https fetch: Get "https://golang.org/x/crypto?go-get=1": dial tcp: lookup golang.org: Temporary failure in name resolution pkg/object/sftp.go:29:2: unrecognized import path "golang.org/x/crypto": https fetch: Get "https://golang.org/x/crypto?go-get=1": dial tcp: lookup golang.org: Temporary failure in name resolution pkg/object/obs.go:38:2: unrecognized import path "golang.org/x/net": https fetch: Get "https://golang.org/x/net?go-get=1": dial tcp: lookup golang.org: Temporary failure in name resolution pkg/fs/http.go:30:2: unrecognized import path "golang.org/x/net": https fetch: Get "https://golang.org/x/net?go-get=1": dial tcp: lookup golang.org: Temporary failure in name resolution pkg/object/gs.go:33:2: unrecognized import path "golang.org/x/oauth2": https fetch: Get "https://golang.org/x/oauth2?go-get=1": dial tcp: lookup golang.org: Temporary failure in name resolution pkg/meta/utils_linux.go:6:2: unrecognized import path "golang.org/x/sys": https fetch: Get "https://golang.org/x/sys?go-get=1": dial tcp: lookup golang.org: Temporary failure in name resolution pkg/object/sftp.go:30:2: unrecognized import path "golang.org/x/term": https fetch: Get "https://golang.org/x/term?go-get=1": dial tcp: lookup golang.org: Temporary failure in name resolution pkg/object/gs.go:34:2: unrecognized import path "google.golang.org/api": https fetch: Get "https://google.golang.org/api?go-get=1": dial tcp: lookup google.golang.org: Temporary failure in name resolution pkg/object/b2.go:31:2: unrecognized import path "gopkg.in/kothar/go-backblaze.v0": https fetch: Get "https://gopkg.in/kothar/go-backblaze.v0?go-get=1": dial tcp: lookup gopkg.in: Temporary failure in name resolution pkg/object/sql.go:37:2: unrecognized import path "gitea.com/davies/xorm": https fetch: Get "https://gitea.com/davies/xorm?go-get=1": dial tcp: lookup gitea.com: Temporary failure in name resolution pkg/object/sql.go:38:2: unrecognized import path "gitea.com/davies/xorm": https fetch: Get "https://gitea.com/davies/xorm?go-get=1": dial tcp: lookup gitea.com: Temporary failure in name resolution pkg/object/sql.go:39:2: unrecognized import path "gitea.com/davies/xorm": https fetch: Get "https://gitea.com/davies/xorm?go-get=1": dial tcp: lookup gitea.com: Temporary failure in name resolution RPM build errors: make: *** [Makefile:24: juicefs] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.DoKmeT (%build) Bad exit status from /var/tmp/rpm-tmp.DoKmeT (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M c443df1c8f824f0f834dca7dd2e20271 -D /var/lib/mock/fedora-rawhide-aarch64/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.wbtmrj7g:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\\033]0;<mock-chroot>\\007" --setenv=PS1=<mock-chroot> \\s-\\v\\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/juicefs.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M c443df1c8f824f0f834dca7dd2e20271 -D /var/lib/mock/fedora-rawhide-aarch64/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.wbtmrj7g:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/juicefs.spec
Hi Benson, Thank you for providing such detailed information. It has been very helpful. Indeed, I conducted compilation tests on servers in different countries and discovered that the RPM packaging failed due to version changes in some go modules that juicefs v1.0.4 depends on. As a result, the specified version couldn't be obtained. The good news is that JuiceFS v1.0.5 will be released soon, and it addresses the dependency issues with go module versions. Once the new version is released, I will update the juicefs.spec file accordingly. I kindly request your assistance in handling it at that time.
Hi Herald, Thanks for improving the Fedora ecosystem. I suggest you try to do some reviews of other Go packages to get sponsored. You should consider joining the Go sig: https://fedoraproject.org/wiki/SIGs/Go and getting familiar with the go2rpm tool as it can make packaging dependencies much easier.
Hello Benson, juicefs v1.1.0 has been released and I have verified that it can be compiled successfully. Could you please review it again? The latest juicefs.spec file is available here: https://copr-dist-git.fedorainfracloud.org/cgit/herald/juicefs/juicefs.git/tree/juicefs.spec
Please add links to the source rpm and raw spec file: spec: https://download.copr.fedorainfracloud.org/results/herald/juicefs/fedora-rawhide-x86_64/06384271-juicefs/juicefs.spec srpm: https://download.copr.fedorainfracloud.org/results/herald/juicefs/fedora-rawhide-x86_64/06384271-juicefs/juicefs-1.1.0-1.fc40.src.rpm Will it also build on PowerPC and s390x or should these be excluded?
(In reply to Benson Muite from comment #5) > Please add links to the source rpm and raw spec file: > > spec: > https://download.copr.fedorainfracloud.org/results/herald/juicefs/fedora- > rawhide-x86_64/06384271-juicefs/juicefs.spec > srpm: > https://download.copr.fedorainfracloud.org/results/herald/juicefs/fedora- > rawhide-x86_64/06384271-juicefs/juicefs-1.1.0-1.fc40.src.rpm > > Will it also build on PowerPC and s390x or should these be excluded? JuiceFS is based on GO, and theoretically it can be compiled and run on PowerPC and s390x as well, I think it doesn't need to be excluded. However, I don't have the machines to verify it. What do you think?
The build should not download from the internet: https://download.copr.fedorainfracloud.org/results/herald/juicefs/fedora-rawhide-x86_64/06384271-juicefs/builder-live.log.gz Everything should be put in the srpm See https://docs.fedoraproject.org/en-US/packaging-guidelines/what-can-be-packaged/#prebuilt-binaries-or-libraries https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/
I basically understand what you mean. Referring to the golang packaging documentation you provided, I tried to add goipath and BuildRequires in the spec file, but still failed to compile due to missing dependencies. Juicefs has over 200 third-party package dependencies, and almost none of them are packaged as RPM. It is difficult to imagine the difficulty of individually handling and maintaining these dependencies build to RPM. Currently, I haven't found a method to directly package the source code of these dependencies into the SRPM. Do you have any suggestions or advice? Is it allowed to directly package the binary of JuiceFS for this situation? https://github.com/juicedata/juicefs/releases/tag/v1.1.0 --- # https://github.com/juicedata/juicefs %global goipath github.com/juicedata/juicefs Version: 1.1.0 %gometa %global common_description %{expand: JuiceFS is a distributed POSIX file system built on top of Redis and S3.} %global golicenses LICENSE %global godocs docs ADOPTERS.md CONTRIBUTING.md CODE_OF_CONDUCT.md\\\ README_CN.md README.md ADOPTERS_CN.md\\\ pkg/object/README.md Name: juicefs Release: %autorelease Summary: JuiceFS is a distributed POSIX file system built on top of Redis and S3 License: Apache-2.0 URL: %{gourl} Source: %{gosource} BuildRequires: golang(cloud.google.com/go/compute/metadata) BuildRequires: golang(cloud.google.com/go/storage) BuildRequires: golang(github.com/agiledragon/gomonkey/v2) BuildRequires: golang(github.com/aliyun/aliyun-oss-go-sdk/oss) BuildRequires: golang(github.com/Arvintian/scs-go-sdk/pkg/client) BuildRequires: golang(github.com/Arvintian/scs-go-sdk/scs) BuildRequires: golang(github.com/aws/aws-sdk-go/aws) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/awserr) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/credentials) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/request) BuildRequires: golang(github.com/aws/aws-sdk-go/aws/session) BuildRequires: golang(github.com/aws/aws-sdk-go/service/s3) BuildRequires: golang(github.com/Azure/azure-sdk-for-go/sdk/azcore) BuildRequires: golang(github.com/Azure/azure-sdk-for-go/sdk/storage/azblob) BuildRequires: golang(github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob) BuildRequires: golang(github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/bloberror) BuildRequires: golang(github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/container) BuildRequires: golang(github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/sas) BuildRequires: golang(github.com/baidubce/bce-sdk-go/bce) BuildRequires: golang(github.com/baidubce/bce-sdk-go/services/bos) BuildRequires: golang(github.com/baidubce/bce-sdk-go/services/bos/api) BuildRequires: golang(github.com/colinmarc/hdfs/v2) BuildRequires: golang(github.com/colinmarc/hdfs/v2/hadoopconf) BuildRequires: golang(github.com/DataDog/zstd) BuildRequires: golang(github.com/dgraph-io/badger/v3) BuildRequires: golang(github.com/dustin/go-humanize) BuildRequires: golang(github.com/erikdubbelboer/gspt) BuildRequires: golang(github.com/goccy/go-json) BuildRequires: golang(github.com/gofrs/flock) BuildRequires: golang(github.com/google/btree) BuildRequires: golang(github.com/google/uuid) BuildRequires: golang(github.com/go-sql-driver/mysql) BuildRequires: golang(github.com/hanwen/go-fuse/v2/fuse) BuildRequires: golang(github.com/hanwen/go-fuse/v2/posixtest) BuildRequires: golang(github.com/hashicorp/consul/api) BuildRequires: golang(github.com/hashicorp/go-hclog) BuildRequires: golang(github.com/huaweicloud/huaweicloud-sdk-go-obs/obs) BuildRequires: golang(github.com/hungys/go-lz4) BuildRequires: golang(github.com/IBM/ibm-cos-sdk-go/aws) BuildRequires: golang(github.com/IBM/ibm-cos-sdk-go/aws/awserr) BuildRequires: golang(github.com/IBM/ibm-cos-sdk-go/aws/credentials/ibmiam) BuildRequires: golang(github.com/IBM/ibm-cos-sdk-go/aws/request) BuildRequires: golang(github.com/IBM/ibm-cos-sdk-go/aws/session) BuildRequires: golang(github.com/IBM/ibm-cos-sdk-go/service/s3) BuildRequires: golang(github.com/jackc/pgx/v5/pgconn) BuildRequires: golang(github.com/jackc/pgx/v5/stdlib) BuildRequires: golang(github.com/jcmturner/gokrb5/v8/client) BuildRequires: golang(github.com/jcmturner/gokrb5/v8/config) BuildRequires: golang(github.com/jcmturner/gokrb5/v8/credentials) BuildRequires: golang(github.com/jcmturner/gokrb5/v8/keytab) BuildRequires: golang(github.com/juicedata/godaemon) BuildRequires: golang(github.com/juju/ratelimit) BuildRequires: golang(github.com/ks3sdklib/aws-sdk-go/aws) BuildRequires: golang(github.com/ks3sdklib/aws-sdk-go/aws/awserr) BuildRequires: golang(github.com/ks3sdklib/aws-sdk-go/aws/credentials) BuildRequires: golang(github.com/ks3sdklib/aws-sdk-go/service/s3) BuildRequires: golang(github.com/mattn/go-isatty) BuildRequires: golang(github.com/mattn/go-sqlite3) BuildRequires: golang(github.com/minio/cli) BuildRequires: golang(github.com/minio/minio/cmd) BuildRequires: golang(github.com/minio/minio-go/pkg/s3utils) BuildRequires: golang(github.com/minio/minio/pkg/auth) BuildRequires: golang(github.com/ncw/swift/v2) BuildRequires: golang(github.com/oliverisaac/shellescape) BuildRequires: golang(github.com/pingcap/log) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/pkg/sftp) BuildRequires: golang(github.com/pkg/xattr) BuildRequires: golang(github.com/prometheus/client_golang/prometheus) BuildRequires: golang(github.com/prometheus/client_golang/prometheus/collectors) BuildRequires: golang(github.com/prometheus/client_golang/prometheus/promhttp) BuildRequires: golang(github.com/prometheus/client_golang/prometheus/push) BuildRequires: golang(github.com/prometheus/client_model/go) BuildRequires: golang(github.com/prometheus/common/expfmt) BuildRequires: golang(github.com/prometheus/common/model) BuildRequires: golang(github.com/pyroscope-io/client/pyroscope) BuildRequires: golang(github.com/qingstor/qingstor-sdk-go/v4/config) BuildRequires: golang(github.com/qingstor/qingstor-sdk-go/v4/request/errors) BuildRequires: golang(github.com/qingstor/qingstor-sdk-go/v4/service) BuildRequires: golang(github.com/qiniu/go-sdk/v7/auth) BuildRequires: golang(github.com/qiniu/go-sdk/v7/storage) BuildRequires: golang(github.com/redis/go-redis/v9) BuildRequires: golang(github.com/sirupsen/logrus) BuildRequires: golang(github.com/sirupsen/logrus/hooks/syslog) BuildRequires: golang(github.com/smartystreets/goconvey/convey) BuildRequires: golang(github.com/studio-b12/gowebdav) BuildRequires: golang(github.com/tencentyun/cos-go-sdk-v5) BuildRequires: golang(github.com/tikv/client-go/v2/config) BuildRequires: golang(github.com/tikv/client-go/v2/error) BuildRequires: golang(github.com/tikv/client-go/v2/oracle) BuildRequires: golang(github.com/tikv/client-go/v2/rawkv) BuildRequires: golang(github.com/tikv/client-go/v2/tikv) BuildRequires: golang(github.com/tikv/client-go/v2/txnkv) BuildRequires: golang(github.com/tikv/client-go/v2/txnkv/txnutil) BuildRequires: golang(github.com/upyun/go-sdk/v3/upyun) BuildRequires: golang(github.com/urfave/cli/v2) BuildRequires: golang(github.com/vbauerster/mpb/v7) BuildRequires: golang(github.com/vbauerster/mpb/v7/decor) BuildRequires: golang(github.com/viki-org/dnscache) BuildRequires: golang(github.com/volcengine/ve-tos-golang-sdk/v2/tos) BuildRequires: golang(github.com/volcengine/ve-tos-golang-sdk/v2/tos/codes) BuildRequires: golang(github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum) BuildRequires: golang(github.com/youmark/pkcs8) BuildRequires: golang(go.etcd.io/etcd/client/v3) BuildRequires: golang(go.etcd.io/etcd/pkg/transport) BuildRequires: golang(golang.org/x/crypto/chacha20poly1305) BuildRequires: golang(golang.org/x/crypto/ssh) BuildRequires: golang(golang.org/x/crypto/ssh/agent) BuildRequires: golang(golang.org/x/net/http/httpproxy) BuildRequires: golang(golang.org/x/net/webdav) BuildRequires: golang(golang.org/x/oauth2/google) BuildRequires: golang(golang.org/x/sync/errgroup) BuildRequires: golang(golang.org/x/sys/unix) BuildRequires: golang(golang.org/x/term) BuildRequires: golang(golang.org/x/text/encoding/simplifiedchinese) BuildRequires: golang(golang.org/x/text/transform) BuildRequires: golang(google.golang.org/api/iterator) BuildRequires: golang(google.golang.org/protobuf/proto) BuildRequires: golang(gopkg.in/kothar/go-backblaze.v0) BuildRequires: golang(go.uber.org/automaxprocs/maxprocs) BuildRequires: golang(go.uber.org/zap) BuildRequires: golang(xorm.io/xorm) BuildRequires: golang(xorm.io/xorm/log) BuildRequires: golang(xorm.io/xorm/names) %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc docs ADOPTERS.md CONTRIBUTING.md CODE_OF_CONDUCT.md README_CN.md README.md %doc ADOPTERS_CN.md pkg/object/README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog ```
Through some attempts, I have found a method to package all dependencies into the .src.rpm. The workflow is as follows: 1. Still using this spec file: https://download.copr.fedorainfracloud.org/results/herald/juicefs/fedora-rawhide-x86_64/06384271-juicefs/juicefs.spec 2. Download the source code and create a source package that includes the vendor directory. ```sh spectool -g juicefs.spec ``` Above will download the source code named v1.1.0.tar.gz, we need to unzip it and then download the mods. ```sh tar xvf v1.1.0.tar.gz cd juicefs-1.1.0 go mod vendor ``` This will download all the dependent packages to the vendor directory of the source code, now recreate a tar.gz file which has vendor directory: ```sh tar zcvf v1.1.0.tar.gz juicefs-1.1.0 ``` 3. Test to building in mock environment. ```sh fedpkg mockbuild ``` In this way, you will see that it can be successfully compiled without the need to download any dependencies during the process. Can we use this approach?
Check with Go sig. https://fedoraproject.org/wiki/SIGs/Go https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/ There are a number of Go packages with dependencies that are bundled. Not clear at present if bundling everything is good, usually prefer to use system packages when possible.
Let's start from scratch. First read the Golang guidelines: https://docs.fedoraproject.org/en-US/packaging-guidelines/Golang/ Then use go2rpm to do the basic template go2rpm -d --name juicefs github.com/juicedata/juicefs Cleanup of the first draft, we'll need to add the licenses later becauseit is statically compiled: # Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/juicedata/juicefs %global goipath github.com/juicedata/juicefs Version: 1.1.0 %gometa -f %global goname juicefs %global common_description %{expand: JuiceFS is a high-performance POSIX file system released under Apache License 2.0, particularly designed for the cloud-native environment. The data, stored via JuiceFS, will be persisted in object storage (e.g. Amazon S3), and the corresponding metadata can be persisted in various database engines such as Redis, MySQL, and TiKV based on the scenarios and requirements. With JuiceFS, massive cloud storage can be directly connected to big data, machine learning, artificial intelligence, and various application platforms in production environments. Without modifying code, the massive cloud storage can be used as efficiently as local storage. * Fully POSIX-compatible: Use as a local file system, seamlessly docking with existing applications without breaking business workflow. * Fully Hadoop-compatible: JuiceFS' Hadoop Java SDK is compatible with Hadoop 2.x and Hadoop 3.x as well as a variety of components in the Hadoop ecosystems. * S3-compatible: JuiceFS' S3 Gateway provides an S3-compatible interface. * Cloud Native: A Kubernetes CSI Driver is provided for easily using JuiceFS in Kubernetes. * Shareable: JuiceFS is a shared file storage that can be read and written by thousands of clients. * Strong Consistency: The confirmed modification will be immediately visible on all the servers mounted with the same file system. * Outstanding Performance: The latency can be as low as a few milliseconds, and the throughput can be expanded nearly unlimitedly (depending on the size of the object storage). * Data Encryption: Supports data encryption in transit and at rest. * Global File Locks: JuiceFS supports both BSD locks (flock) and POSIX record locks (fcntl). * Data Compression: JuiceFS supports LZ4 or Zstandard to compress all your data.} %global golicenses LICENSE %global godocs docs ADOPTERS.md ADOPTERS_CN.md CODE_OF_CONDUCT.md\\\ CONTRIBUTING.md README.md README_CN.md Name: juicefs Release: %autorelease Summary: Distributed POSIX file system built on top of Redis and S3 License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build export LDFLAGS="-X github.com/juicedata/juicefs/pkg/version.revision=%{version} \ -X github.com/juicedata/juicefs/pkg/version.revisionDate=$(date +%%Y%%m%%d)" export BUILDTAGS="ceph,fdb,gluster" %gobuild -o %{gobuilddir}/bin/juicefs %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc docs ADOPTERS.md ADOPTERS_CN.md CODE_OF_CONDUCT.md %doc CONTRIBUTING.md README.md README_CN.md %{_bindir}/juicefs %gopkgfiles %changelog %autochangelog Let's try to build it: spectool -g *.spec; rpmbuild -bs *.spec Downloading: https://github.com/juicedata/juicefs/archive/v1.1.0/juicefs-1.1.0.tar.gz | 31.0 MiB Elapsed Time: 0:00:01 Downloaded: juicefs-1.1.0.tar.gz setting SOURCE_DATE_EPOCH=1698278400 fedpkg --release f40 mockbuild -N No matching package to install: 'golang(github.com/Arvintian/scs-go-sdk/pkg/client)' No matching package to install: 'golang(github.com/Arvintian/scs-go-sdk/scs)' No matching package to install: 'golang(github.com/DataDog/zstd)' No matching package to install: 'golang(github.com/IBM/ibm-cos-sdk-go/aws)' No matching package to install: 'golang(github.com/IBM/ibm-cos-sdk-go/aws/awserr)' No matching package to install: 'golang(github.com/IBM/ibm-cos-sdk-go/aws/credentials/ibmiam)' No matching package to install: 'golang(github.com/IBM/ibm-cos-sdk-go/aws/request)' No matching package to install: 'golang(github.com/IBM/ibm-cos-sdk-go/aws/session)' No matching package to install: 'golang(github.com/IBM/ibm-cos-sdk-go/service/s3)' No matching package to install: 'golang(github.com/agiledragon/gomonkey/v2)' No matching package to install: 'golang(github.com/baidubce/bce-sdk-go/bce)' No matching package to install: 'golang(github.com/baidubce/bce-sdk-go/services/bos)' No matching package to install: 'golang(github.com/baidubce/bce-sdk-go/services/bos/api)' No matching package to install: 'golang(github.com/dgraph-io/badger/v3)' No matching package to install: 'golang(github.com/erikdubbelboer/gspt)' No matching package to install: 'golang(github.com/huaweicloud/huaweicloud-sdk-go-obs/obs)' No matching package to install: 'golang(github.com/hungys/go-lz4)' No matching package to install: 'golang(github.com/jackc/pgx/v5/pgconn)' No matching package to install: 'golang(github.com/jackc/pgx/v5/stdlib)' No matching package to install: 'golang(github.com/juicedata/godaemon)' No matching package to install: 'golang(github.com/ks3sdklib/aws-sdk-go/aws)' No matching package to install: 'golang(github.com/ks3sdklib/aws-sdk-go/aws/awserr)' No matching package to install: 'golang(github.com/ks3sdklib/aws-sdk-go/aws/credentials)' No matching package to install: 'golang(github.com/ks3sdklib/aws-sdk-go/service/s3)' No matching package to install: 'golang(github.com/minio/cli)' No matching package to install: 'golang(github.com/minio/minio/cmd)' No matching package to install: 'golang(github.com/minio/minio/pkg/auth)' No matching package to install: 'golang(github.com/oliverisaac/shellescape)' No matching package to install: 'golang(github.com/pingcap/log)' No matching package to install: 'golang(github.com/pyroscope-io/client/pyroscope)' No matching package to install: 'golang(github.com/qingstor/qingstor-sdk-go/v4/config)' No matching package to install: 'golang(github.com/qingstor/qingstor-sdk-go/v4/request/errors)' No matching package to install: 'golang(github.com/qingstor/qingstor-sdk-go/v4/service)' No matching package to install: 'golang(github.com/qiniu/go-sdk/v7/auth)' No matching package to install: 'golang(github.com/qiniu/go-sdk/v7/storage)' No matching package to install: 'golang(github.com/redis/go-redis/v9)' No matching package to install: 'golang(github.com/studio-b12/gowebdav)' No matching package to install: 'golang(github.com/tencentyun/cos-go-sdk-v5)' No matching package to install: 'golang(github.com/tikv/client-go/v2/config)' No matching package to install: 'golang(github.com/tikv/client-go/v2/error)' No matching package to install: 'golang(github.com/tikv/client-go/v2/oracle)' No matching package to install: 'golang(github.com/tikv/client-go/v2/rawkv)' No matching package to install: 'golang(github.com/tikv/client-go/v2/tikv)' No matching package to install: 'golang(github.com/tikv/client-go/v2/txnkv)' No matching package to install: 'golang(github.com/tikv/client-go/v2/txnkv/txnutil)' No matching package to install: 'golang(github.com/upyun/go-sdk/v3/upyun)' No matching package to install: 'golang(github.com/vbauerster/mpb/v7)' No matching package to install: 'golang(github.com/vbauerster/mpb/v7/decor)' No matching package to install: 'golang(github.com/viki-org/dnscache)' No matching package to install: 'golang(github.com/volcengine/ve-tos-golang-sdk/v2/tos)' No matching package to install: 'golang(github.com/volcengine/ve-tos-golang-sdk/v2/tos/codes)' No matching package to install: 'golang(github.com/volcengine/ve-tos-golang-sdk/v2/tos/enum)' No matching package to install: 'golang(go.etcd.io/etcd/pkg/transport)' No matching package to install: 'golang(gopkg.in/kothar/go-backblaze.v0) Mow we have the list of new dependencies to package. So: github.com/Arvintian/scs-go-sdk github.com/DataDog/zstd github.com/IBM/ibm-cos-sdk-go github.com/agiledragon/gomonkey/v2 github.com/baidubce/bce-sdk-go github.com/dgraph-io/badger/v3 github.com/erikdubbelboer/gspt github.com/huaweicloud/huaweicloud-sdk-go-obs github.com/hungys/go-lz4 github.com/jackc/pgx/v5 github.com/juicedata/godaemon github.com/ks3sdklib/aws-sdk-go github.com/minio/cli github.com/minio/minio github.com/oliverisaac/shellescape github.com/pingcap/log github.com/pyroscope-io/client github.com/qingstor/qingstor-sdk-go/v4 github.com/qiniu/go-sdk/v7 github.com/redis/go-redis/v9 github.com/studio-b12/gowebdav github.com/tencentyun/cos-go-sdk-v5 github.com/tikv/client-go/v2 github.com/upyun/go-sdk/v3 github.com/vbauerster/mpb/v7 github.com/viki-org/dnscache github.com/volcengine/ve-tos-golang-sdk/v2 gopkg.in/kothar/go-backblaze.v0 28 first level packages I'll follow up later.
Well this will go nowhere until this is resolved: https://github.com/Arvintian/scs-go-sdk/issues/1
Oh wait: Well this will go nowhere until this is resolved: https://github.com/oliverisaac/shellescape/issues/1 too.
This is an automatic check from review-stats script. This review request ticket hasn't been updated for some time, but it seems that the review is still being working out by you. If this is right, please respond to this comment clearing the NEEDINFO flag and try to reach out the submitter to proceed with the review. If you're not interested in reviewing this ticket anymore, please clear the fedora-review flag and reset the assignee, so that a new reviewer can take this ticket. Without any reply, this request will shortly be resetted.
Happy to finish review if above issues are resolved.