diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..bbfcbd5 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,34 @@ +builds: + - main: ./cmd/ipni + binary: ipni + ldflags: + # Sets the version variable in the build package to the build version prefixed with a 'v' + # Sets the main.date to a static date for checksum verification. See https://goreleaser.com/customization/builds/#reproducible-builds. + - -s -w -X github.com/ipni/ipni-cli/ipnicli.Revision={{.Commit}} -X github.com/ipni/ipni-cli/ipnicli.Release=v{{.Version}} -X github.com/ipni/ipni-cli/ipnicli.Version=v{{.Version}}-{{.Commit}} + goos: + - linux + - windows + - darwin + goarch: + - 'amd64' + - 'arm64' + # Change to a static date for checksum verification. See https://goreleaser.com/customization/builds/#reproducible-builds. + mod_timestamp: '{{.CommitTimestamp}}' + env: + - CGO_ENABLED=0 +universal_binaries: + - replace: true +archives: + - format_overrides: + - goos: windows + format: zip + - goos: darwin + format: tar.xz + name_template: >- + {{ .ProjectName }}_{{ .Version }}_ + {{- if eq .Os "darwin" }}mac_os + {{- else }}{{ .Os }}{{ end }}_{{ .Arch }} +release: + mode: keep-existing +changelog: + skip: true diff --git a/README.md b/README.md index 7751c24..96e9af0 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ ipni find -i https://cid.contact --cid bafybeigvgzoolc3drupxhlevdp2ugqcrbcsqfmce ``` - See which providers cid.contact knows about that dev.cid.contact does not: ```sh -ipni provider --all -i https://dev.cid.contact -id | ipni provider -invert -i https://cid.contact -id +ipni provider --all -i https://dev.cid.contact --id-only | ipni provider -invert -i https://cid.contact --id-only ``` - Get combined provider information from multiple indexers: ``` diff --git a/go.mod b/go.mod index 64d8c0e..137b3ca 100644 --- a/go.mod +++ b/go.mod @@ -9,8 +9,8 @@ require ( github.com/ipfs/go-log/v2 v2.5.1 github.com/ipld/go-car/v2 v2.13.1 github.com/ipld/go-ipld-prime v0.21.0 - github.com/ipni/go-libipni v0.5.5 - github.com/libp2p/go-libp2p v0.32.0 + github.com/ipni/go-libipni v0.5.7 + github.com/libp2p/go-libp2p v0.32.1 github.com/mattn/go-isatty v0.0.20 github.com/montanaflynn/stats v0.7.0 github.com/multiformats/go-multiaddr v0.12.0 diff --git a/go.sum b/go.sum index c286c0c..9429d5e 100644 --- a/go.sum +++ b/go.sum @@ -269,8 +269,8 @@ github.com/ipld/go-codec-dagpb v1.6.0/go.mod h1:ANzFhfP2uMJxRBr8CE+WQWs5UsNa0pYt github.com/ipld/go-ipld-prime v0.21.0 h1:n4JmcpOlPDIxBcY037SVfpd1G+Sj1nKZah0m6QH9C2E= github.com/ipld/go-ipld-prime v0.21.0/go.mod h1:3RLqy//ERg/y5oShXXdx5YIp50cFGOanyMctpPjsvxQ= github.com/ipld/go-ipld-prime/storage/bsadapter v0.0.0-20230102063945-1a409dc236dd h1:gMlw/MhNr2Wtp5RwGdsW23cs+yCuj9k2ON7i9MiJlRo= -github.com/ipni/go-libipni v0.5.5 h1:xksZe1ainp+h0KjWdK5tv7FJ8RR45l03UjrET7sWZ8c= -github.com/ipni/go-libipni v0.5.5/go.mod h1:tdT8a9omKLwm4JEB/hV1Tm9b/4TQY7gKI2cJfN7I/5c= +github.com/ipni/go-libipni v0.5.7 h1:6/JLZGfv3I54ArBKfS+k/ywOCntXtxMcD7qIf8+uexY= +github.com/ipni/go-libipni v0.5.7/go.mod h1:+S7MXdUoYyrKK37clglSJyzIV8AkQYG5TuMZhLIgJek= github.com/ipsn/go-secp256k1 v0.0.0-20180726113642-9d62b9f0bc52 h1:QG4CGBqCeuBo6aZlGAamSkxWdgWfZGeE49eUOWJPA4c= github.com/jackpal/go-nat-pmp v1.0.2 h1:KzKSgb7qkJvOUTqYl9/Hg/me3pWgBmERKrTGD7BdWus= github.com/jackpal/go-nat-pmp v1.0.2/go.mod h1:QPH045xvCAeXUZOxsnwmrtiCoxIr9eob+4orBN1SBKc= @@ -315,8 +315,8 @@ github.com/libp2p/go-cidranger v1.1.0 h1:ewPN8EZ0dd1LSnrtuwd4709PXVcITVeuwbag38y github.com/libp2p/go-cidranger v1.1.0/go.mod h1:KWZTfSr+r9qEo9OkI9/SIEeAtw+NNoU0dXIXt15Okic= github.com/libp2p/go-flow-metrics v0.1.0 h1:0iPhMI8PskQwzh57jB9WxIuIOQ0r+15PChFGkx3Q3WM= github.com/libp2p/go-flow-metrics v0.1.0/go.mod h1:4Xi8MX8wj5aWNDAZttg6UPmc0ZrnFNsMtpsYUClFtro= -github.com/libp2p/go-libp2p v0.32.0 h1:86I4B7nBUPIyTgw3+5Ibq6K7DdKRCuZw8URCfPc1hQM= -github.com/libp2p/go-libp2p v0.32.0/go.mod h1:hXXC3kXPlBZ1eu8Q2hptGrMB4mZ3048JUoS4EKaHW5c= +github.com/libp2p/go-libp2p v0.32.1 h1:wy1J4kZIZxOaej6NveTWCZmHiJ/kY7GoAqXgqNCnPps= +github.com/libp2p/go-libp2p v0.32.1/go.mod h1:hXXC3kXPlBZ1eu8Q2hptGrMB4mZ3048JUoS4EKaHW5c= github.com/libp2p/go-libp2p-asn-util v0.3.0 h1:gMDcMyYiZKkocGXDQ5nsUQyquC9+H+iLEQHwOCZ7s8s= github.com/libp2p/go-libp2p-asn-util v0.3.0/go.mod h1:B1mcOrKUE35Xq/ASTmQ4tN3LNzVVaMNmq2NACuqyB9w= github.com/libp2p/go-libp2p-pubsub v0.10.0 h1:wS0S5FlISavMaAbxyQn3dxMOe2eegMfswM471RuHJwA= diff --git a/version.json b/version.json index 94fc44a..b8cde9b 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "v0.1.6" + "version": "v0.1.7" }