@blinklabs/dingo 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +5 -0
- package/.github/CODEOWNERS +5 -0
- package/.github/assets/dingo-ate-my-blockchain.png +0 -0
- package/.github/assets/dingo-illustration.png +0 -0
- package/.github/assets/dingo-logo-with-text-horizontal.png +0 -0
- package/.github/assets/dingo-logo-with-text.png +0 -0
- package/.github/dependabot.yml +19 -0
- package/.github/dingo-20241210.png +0 -0
- package/.github/dingo.md +56 -0
- package/.github/workflows/ci-docker.yml +36 -0
- package/.github/workflows/conventional-commits.yml +17 -0
- package/.github/workflows/go-test.yml +29 -0
- package/.github/workflows/golangci-lint.yml +23 -0
- package/.github/workflows/publish.yml +207 -0
- package/.golangci.yml +71 -0
- package/Dockerfile +25 -0
- package/LICENSE +201 -0
- package/Makefile +53 -0
- package/README.md +150 -0
- package/blockfetch.go +144 -0
- package/chain/chain.go +504 -0
- package/chain/chain_test.go +468 -0
- package/chain/errors.go +80 -0
- package/chain/event.go +33 -0
- package/chain/iter.go +64 -0
- package/chainsync/chainsync.go +97 -0
- package/chainsync.go +223 -0
- package/cmd/dingo/load.go +52 -0
- package/cmd/dingo/main.go +118 -0
- package/cmd/dingo/serve.go +49 -0
- package/config/cardano/node.go +192 -0
- package/config/cardano/node_test.go +85 -0
- package/config/cardano/preview/README.md +4 -0
- package/config/cardano/preview/alonzo-genesis.json +196 -0
- package/config/cardano/preview/byron-genesis.json +117 -0
- package/config/cardano/preview/config.json +114 -0
- package/config/cardano/preview/conway-genesis.json +297 -0
- package/config/cardano/preview/shelley-genesis.json +68 -0
- package/config.go +245 -0
- package/connmanager/connection_manager.go +105 -0
- package/connmanager/connection_manager_test.go +185 -0
- package/connmanager/event.go +37 -0
- package/connmanager/listener.go +140 -0
- package/connmanager/outbound.go +93 -0
- package/connmanager/socket.go +55 -0
- package/connmanager/unix.go +78 -0
- package/custom-p2p-topology.json +24 -0
- package/custom-p2p-topology.json.backup +24 -0
- package/custom-p2p-topology.json.mainnet +37 -0
- package/database/account.go +138 -0
- package/database/block.go +362 -0
- package/database/certs.go +53 -0
- package/database/commit_timestamp.go +77 -0
- package/database/database.go +118 -0
- package/database/database_test.go +62 -0
- package/database/drep.go +27 -0
- package/database/epoch.go +121 -0
- package/database/immutable/chunk.go +182 -0
- package/database/immutable/immutable.go +350 -0
- package/database/immutable/immutable_test.go +59 -0
- package/database/immutable/primary.go +106 -0
- package/database/immutable/secondary.go +103 -0
- package/database/immutable/testdata/08893.chunk +0 -0
- package/database/immutable/testdata/08893.primary +0 -0
- package/database/immutable/testdata/08893.secondary +0 -0
- package/database/immutable/testdata/08894.chunk +0 -0
- package/database/immutable/testdata/08894.primary +0 -0
- package/database/immutable/testdata/08894.secondary +0 -0
- package/database/immutable/testdata/README.md +4 -0
- package/database/plugin/blob/badger/commit_timestamp.go +50 -0
- package/database/plugin/blob/badger/database.go +152 -0
- package/database/plugin/blob/badger/logger.go +63 -0
- package/database/plugin/blob/badger/metrics.go +98 -0
- package/database/plugin/blob/blob.go +19 -0
- package/database/plugin/blob/store.go +40 -0
- package/database/plugin/log.go +27 -0
- package/database/plugin/metadata/metadata.go +19 -0
- package/database/plugin/metadata/sqlite/account.go +224 -0
- package/database/plugin/metadata/sqlite/certs.go +58 -0
- package/database/plugin/metadata/sqlite/commit_timestamp.go +68 -0
- package/database/plugin/metadata/sqlite/database.go +218 -0
- package/database/plugin/metadata/sqlite/epoch.go +120 -0
- package/database/plugin/metadata/sqlite/models/account.go +81 -0
- package/database/plugin/metadata/sqlite/models/auth_committee_hot.go +26 -0
- package/database/plugin/metadata/sqlite/models/deregistration_drep.go +26 -0
- package/database/plugin/metadata/sqlite/models/drep.go +27 -0
- package/database/plugin/metadata/sqlite/models/epoch.go +31 -0
- package/database/plugin/metadata/sqlite/models/models.go +45 -0
- package/database/plugin/metadata/sqlite/models/pool.go +97 -0
- package/database/plugin/metadata/sqlite/models/pparam_update.go +27 -0
- package/database/plugin/metadata/sqlite/models/pparams.go +27 -0
- package/database/plugin/metadata/sqlite/models/registration_drep.go +28 -0
- package/database/plugin/metadata/sqlite/models/resign_committee_cold.go +27 -0
- package/database/plugin/metadata/sqlite/models/stake_registration_delegation.go +27 -0
- package/database/plugin/metadata/sqlite/models/stake_vote_delegation.go +27 -0
- package/database/plugin/metadata/sqlite/models/stake_vote_registration_delegation.go +27 -0
- package/database/plugin/metadata/sqlite/models/tip.go +26 -0
- package/database/plugin/metadata/sqlite/models/update_drep.go +27 -0
- package/database/plugin/metadata/sqlite/models/utxo.go +30 -0
- package/database/plugin/metadata/sqlite/models/vote_delegation.go +26 -0
- package/database/plugin/metadata/sqlite/models/vote_registration_delegation.go +26 -0
- package/database/plugin/metadata/sqlite/pool.go +240 -0
- package/database/plugin/metadata/sqlite/pparams.go +110 -0
- package/database/plugin/metadata/sqlite/tip.go +83 -0
- package/database/plugin/metadata/sqlite/utxo.go +292 -0
- package/database/plugin/metadata/store.go +168 -0
- package/database/plugin/option.go +190 -0
- package/database/plugin/plugin.go +20 -0
- package/database/plugin/register.go +118 -0
- package/database/pparams.go +145 -0
- package/database/tip.go +45 -0
- package/database/txn.go +147 -0
- package/database/types/types.go +74 -0
- package/database/types/types_test.go +83 -0
- package/database/utxo.go +263 -0
- package/dist/artifacts.json +1 -0
- package/dist/checksums.txt +22 -0
- package/dist/config.yaml +253 -0
- package/dist/dingo-0.5.0-SNAPSHOT-d9431e4.tar.gz +0 -0
- package/dist/dingo-0.5.0-SNAPSHOT-d9431e4.tar.gz.sbom.json +1 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_darwin_arm64.tar.gz +0 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_darwin_arm64.tar.gz.sbom.json +1 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_darwin_x86_64.tar.gz +0 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_darwin_x86_64.tar.gz.sbom.json +1 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.apk +0 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.apk.sbom.json +1 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.deb +0 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.deb.sbom.json +1 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.rpm +0 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.rpm.sbom.json +1 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.apk +0 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.apk.sbom.json +1 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.deb +0 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.deb.sbom.json +1 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.rpm +0 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.rpm.sbom.json +1 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.tar.gz +0 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.tar.gz.sbom.json +1 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_x86_64.tar.gz +0 -0
- package/dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_x86_64.tar.gz.sbom.json +1 -0
- package/dist/dingo_darwin_amd64_v1/dingo +0 -0
- package/dist/dingo_darwin_arm64_v8.0/dingo +0 -0
- package/dist/dingo_linux_amd64_v1/dingo +0 -0
- package/dist/dingo_linux_arm64_v8.0/dingo +0 -0
- package/dist/homebrew/dingo.rb +51 -0
- package/dist/metadata.json +1 -0
- package/event/event.go +141 -0
- package/event/event_test.go +115 -0
- package/event/metrics.go +44 -0
- package/go.mod +98 -0
- package/go.sum +358 -0
- package/internal/config/config.go +145 -0
- package/internal/config/config_test.go +118 -0
- package/internal/node/load.go +149 -0
- package/internal/node/node.go +176 -0
- package/internal/version/version.go +33 -0
- package/ledger/certs.go +113 -0
- package/ledger/chainsync.go +578 -0
- package/ledger/eras/allegra.go +154 -0
- package/ledger/eras/alonzo.go +156 -0
- package/ledger/eras/babbage.go +154 -0
- package/ledger/eras/byron.go +42 -0
- package/ledger/eras/conway.go +158 -0
- package/ledger/eras/eras.go +44 -0
- package/ledger/eras/mary.go +154 -0
- package/ledger/eras/shelley.go +164 -0
- package/ledger/error.go +19 -0
- package/ledger/event.go +50 -0
- package/ledger/metrics.go +53 -0
- package/ledger/queries.go +260 -0
- package/ledger/slot.go +127 -0
- package/ledger/slot_test.go +147 -0
- package/ledger/state.go +726 -0
- package/ledger/view.go +73 -0
- package/localstatequery.go +50 -0
- package/localtxmonitor.go +44 -0
- package/localtxsubmission.go +52 -0
- package/mempool/consumer.go +98 -0
- package/mempool/mempool.go +322 -0
- package/node.go +320 -0
- package/package.json +33 -0
- package/peergov/event.go +27 -0
- package/peergov/peer.go +67 -0
- package/peergov/peergov.go +290 -0
- package/peersharing.go +70 -0
- package/preview-local-topology.json +23 -0
- package/topology/topology.go +69 -0
- package/topology/topology_test.go +179 -0
- package/tracing.go +65 -0
- package/txsubmission.go +233 -0
- package/utxorpc/query.go +311 -0
- package/utxorpc/submit.go +395 -0
- package/utxorpc/sync.go +276 -0
- package/utxorpc/utxorpc.go +166 -0
- package/utxorpc/watch.go +310 -0
package/database/utxo.go
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
// Copyright 2025 Blink Labs Software
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
package database
|
|
16
|
+
|
|
17
|
+
import (
|
|
18
|
+
"errors"
|
|
19
|
+
"math/big"
|
|
20
|
+
"slices"
|
|
21
|
+
|
|
22
|
+
"github.com/blinklabs-io/gouroboros/ledger"
|
|
23
|
+
"github.com/dgraph-io/badger/v4"
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
type Utxo struct {
|
|
27
|
+
ID uint `gorm:"primarykey"`
|
|
28
|
+
TxId []byte `gorm:"index:tx_id_output_idx"`
|
|
29
|
+
OutputIdx uint32 `gorm:"index:tx_id_output_idx"`
|
|
30
|
+
AddedSlot uint64 `gorm:"index"`
|
|
31
|
+
DeletedSlot uint64 `gorm:"index"`
|
|
32
|
+
PaymentKey []byte `gorm:"index"`
|
|
33
|
+
StakingKey []byte `gorm:"index"`
|
|
34
|
+
Cbor []byte `gorm:"-"` // This is not represented in the metadata DB
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
func (u *Utxo) TableName() string {
|
|
38
|
+
return "utxo"
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
func (u *Utxo) Decode() (ledger.TransactionOutput, error) {
|
|
42
|
+
return ledger.NewTransactionOutputFromCbor(u.Cbor)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
func (u *Utxo) loadCbor(txn *Txn) error {
|
|
46
|
+
key := UtxoBlobKey(u.TxId, u.OutputIdx)
|
|
47
|
+
item, err := txn.Blob().Get(key)
|
|
48
|
+
if err != nil {
|
|
49
|
+
return err
|
|
50
|
+
}
|
|
51
|
+
u.Cbor, err = item.ValueCopy(nil)
|
|
52
|
+
if err != nil {
|
|
53
|
+
if errors.Is(err, badger.ErrKeyNotFound) {
|
|
54
|
+
return nil
|
|
55
|
+
}
|
|
56
|
+
return err
|
|
57
|
+
}
|
|
58
|
+
return nil
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
func (d *Database) NewUtxo(
|
|
62
|
+
txId []byte,
|
|
63
|
+
outputIdx uint32,
|
|
64
|
+
slot uint64,
|
|
65
|
+
paymentKey, stakeKey, cbor []byte,
|
|
66
|
+
txn *Txn,
|
|
67
|
+
) error {
|
|
68
|
+
if txn == nil {
|
|
69
|
+
txn = d.Transaction(false)
|
|
70
|
+
defer txn.Commit() //nolint:errcheck
|
|
71
|
+
}
|
|
72
|
+
// Add UTxO to blob DB
|
|
73
|
+
key := UtxoBlobKey(txId, outputIdx)
|
|
74
|
+
err := txn.Blob().Set(key, cbor)
|
|
75
|
+
if err != nil {
|
|
76
|
+
return err
|
|
77
|
+
}
|
|
78
|
+
return d.metadata.SetUtxo(
|
|
79
|
+
txId,
|
|
80
|
+
outputIdx,
|
|
81
|
+
slot,
|
|
82
|
+
paymentKey,
|
|
83
|
+
stakeKey,
|
|
84
|
+
txn.Metadata(),
|
|
85
|
+
)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
func (d *Database) UtxoByRef(
|
|
89
|
+
txId []byte,
|
|
90
|
+
outputIdx uint32,
|
|
91
|
+
txn *Txn,
|
|
92
|
+
) (Utxo, error) {
|
|
93
|
+
tmpUtxo := Utxo{}
|
|
94
|
+
if txn == nil {
|
|
95
|
+
txn = d.Transaction(false)
|
|
96
|
+
defer txn.Commit() //nolint:errcheck
|
|
97
|
+
}
|
|
98
|
+
utxo, err := d.metadata.GetUtxo(txId, outputIdx, txn.Metadata())
|
|
99
|
+
if err != nil {
|
|
100
|
+
return tmpUtxo, err
|
|
101
|
+
}
|
|
102
|
+
tmpUtxo = Utxo(utxo)
|
|
103
|
+
if err := tmpUtxo.loadCbor(txn); err != nil {
|
|
104
|
+
return tmpUtxo, err
|
|
105
|
+
}
|
|
106
|
+
return tmpUtxo, nil
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
func (d *Database) UtxoConsume(
|
|
110
|
+
utxoId ledger.TransactionInput,
|
|
111
|
+
slot uint64,
|
|
112
|
+
txn *Txn,
|
|
113
|
+
) error {
|
|
114
|
+
if txn == nil {
|
|
115
|
+
txn = NewMetadataOnlyTxn(d, true)
|
|
116
|
+
defer txn.Commit() //nolint:errcheck
|
|
117
|
+
}
|
|
118
|
+
return d.metadata.SetUtxoDeletedAtSlot(utxoId, slot, txn.Metadata())
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
func (d *Database) UtxosByAddress(
|
|
122
|
+
addr ledger.Address,
|
|
123
|
+
txn *Txn,
|
|
124
|
+
) ([]Utxo, error) {
|
|
125
|
+
ret := []Utxo{}
|
|
126
|
+
if txn == nil {
|
|
127
|
+
txn = d.Transaction(false)
|
|
128
|
+
defer txn.Commit() //nolint:errcheck
|
|
129
|
+
}
|
|
130
|
+
utxos, err := d.metadata.GetUtxosByAddress(addr, txn.Metadata())
|
|
131
|
+
if err != nil {
|
|
132
|
+
return ret, err
|
|
133
|
+
}
|
|
134
|
+
var tmpUtxo Utxo
|
|
135
|
+
for _, utxo := range utxos {
|
|
136
|
+
tmpUtxo = Utxo(utxo)
|
|
137
|
+
if err := tmpUtxo.loadCbor(txn); err != nil {
|
|
138
|
+
return ret, err
|
|
139
|
+
}
|
|
140
|
+
ret = append(ret, tmpUtxo)
|
|
141
|
+
}
|
|
142
|
+
return ret, nil
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
func (d *Database) UtxosDeleteConsumed(
|
|
146
|
+
slot uint64,
|
|
147
|
+
txn *Txn,
|
|
148
|
+
) error {
|
|
149
|
+
var ret error
|
|
150
|
+
if txn == nil {
|
|
151
|
+
txn = d.Transaction(true)
|
|
152
|
+
defer txn.Commit() //nolint:errcheck
|
|
153
|
+
}
|
|
154
|
+
// Get UTxOs that are marked as deleted and older than our slot window
|
|
155
|
+
utxos, err := d.metadata.GetUtxosDeletedBeforeSlot(slot, txn.Metadata())
|
|
156
|
+
if err != nil {
|
|
157
|
+
return errors.New("failed to query consumed UTxOs during cleanup")
|
|
158
|
+
}
|
|
159
|
+
err = d.metadata.DeleteUtxosBeforeSlot(slot, txn.Metadata())
|
|
160
|
+
if err != nil {
|
|
161
|
+
return err
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// Loop through UTxOs and delete, with a new transaction each loop
|
|
165
|
+
for ret == nil {
|
|
166
|
+
// short-circuit loop
|
|
167
|
+
|
|
168
|
+
batchSize := min(1000, len(utxos))
|
|
169
|
+
if batchSize == 0 {
|
|
170
|
+
break
|
|
171
|
+
}
|
|
172
|
+
loopTxn := NewBlobOnlyTxn(d, true)
|
|
173
|
+
err := loopTxn.Do(func(txn *Txn) error {
|
|
174
|
+
// Remove from blob DB
|
|
175
|
+
for _, utxo := range utxos[0:batchSize] {
|
|
176
|
+
key := UtxoBlobKey(utxo.TxId, utxo.OutputIdx)
|
|
177
|
+
err := txn.Blob().Delete(key)
|
|
178
|
+
if err != nil {
|
|
179
|
+
ret = err
|
|
180
|
+
return err
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return nil
|
|
184
|
+
})
|
|
185
|
+
if err != nil {
|
|
186
|
+
ret = err
|
|
187
|
+
break
|
|
188
|
+
}
|
|
189
|
+
// Remove batch
|
|
190
|
+
utxos = slices.Delete(utxos, 0, batchSize)
|
|
191
|
+
}
|
|
192
|
+
return ret
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
func (d *Database) UtxosDeleteRolledback(
|
|
196
|
+
slot uint64,
|
|
197
|
+
txn *Txn,
|
|
198
|
+
) error {
|
|
199
|
+
var ret error
|
|
200
|
+
if txn == nil {
|
|
201
|
+
txn = d.Transaction(true)
|
|
202
|
+
defer txn.Commit() //nolint:errcheck
|
|
203
|
+
}
|
|
204
|
+
utxos, err := d.metadata.GetUtxosDeletedBeforeSlot(slot, txn.Metadata())
|
|
205
|
+
if err != nil {
|
|
206
|
+
return err
|
|
207
|
+
}
|
|
208
|
+
err = d.metadata.DeleteUtxosAfterSlot(slot, txn.Metadata())
|
|
209
|
+
if err != nil {
|
|
210
|
+
return err
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// Loop through UTxOs and delete, reusing our transaction
|
|
214
|
+
for ret == nil {
|
|
215
|
+
// short-circuit loop
|
|
216
|
+
|
|
217
|
+
batchSize := min(1000, len(utxos))
|
|
218
|
+
if batchSize == 0 {
|
|
219
|
+
break
|
|
220
|
+
}
|
|
221
|
+
loopTxn := NewBlobOnlyTxn(d, true)
|
|
222
|
+
err := loopTxn.Do(func(txn *Txn) error {
|
|
223
|
+
// Remove from blob DB
|
|
224
|
+
for _, utxo := range utxos[0:batchSize] {
|
|
225
|
+
key := UtxoBlobKey(utxo.TxId, utxo.OutputIdx)
|
|
226
|
+
err := txn.Blob().Delete(key)
|
|
227
|
+
if err != nil {
|
|
228
|
+
ret = err
|
|
229
|
+
return err
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
return nil
|
|
233
|
+
})
|
|
234
|
+
if err != nil {
|
|
235
|
+
ret = err
|
|
236
|
+
break
|
|
237
|
+
}
|
|
238
|
+
// Remove batch
|
|
239
|
+
utxos = slices.Delete(utxos, 0, batchSize)
|
|
240
|
+
}
|
|
241
|
+
return ret
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
func (d *Database) UtxosUnspend(
|
|
245
|
+
slot uint64,
|
|
246
|
+
txn *Txn,
|
|
247
|
+
) error {
|
|
248
|
+
if txn == nil {
|
|
249
|
+
txn = NewMetadataOnlyTxn(d, true)
|
|
250
|
+
defer txn.Commit() //nolint:errcheck
|
|
251
|
+
}
|
|
252
|
+
return d.metadata.SetUtxosNotDeletedAfterSlot(slot, txn.Metadata())
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
func UtxoBlobKey(txId []byte, outputIdx uint32) []byte {
|
|
256
|
+
key := []byte("u")
|
|
257
|
+
key = append(key, txId...)
|
|
258
|
+
// Convert index to bytes
|
|
259
|
+
idxBytes := make([]byte, 4)
|
|
260
|
+
new(big.Int).SetUint64(uint64(outputIdx)).FillBytes(idxBytes)
|
|
261
|
+
key = append(key, idxBytes...)
|
|
262
|
+
return key
|
|
263
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"name":"metadata.json","path":"dist/metadata.json","internal_type":30,"type":"Metadata"},{"name":"dingo","path":"dist/dingo_linux_arm64_v8.0/dingo","goos":"linux","goarch":"arm64","goarm64":"v8.0","target":"linux_arm64_v8.0","internal_type":4,"type":"Binary","extra":{"Binary":"dingo","Builder":"go","Ext":"","ID":"dingo"}},{"name":"dingo","path":"dist/dingo_linux_amd64_v1/dingo","goos":"linux","goarch":"amd64","goamd64":"v1","target":"linux_amd64_v1","internal_type":4,"type":"Binary","extra":{"Binary":"dingo","Builder":"go","Ext":"","ID":"dingo"}},{"name":"dingo","path":"dist/dingo_darwin_amd64_v1/dingo","goos":"darwin","goarch":"amd64","goamd64":"v1","target":"darwin_amd64_v1","internal_type":4,"type":"Binary","extra":{"Binary":"dingo","Builder":"go","Ext":"","ID":"dingo"}},{"name":"dingo","path":"dist/dingo_darwin_arm64_v8.0/dingo","goos":"darwin","goarch":"arm64","goarm64":"v8.0","target":"darwin_arm64_v8.0","internal_type":4,"type":"Binary","extra":{"Binary":"dingo","Builder":"go","Ext":"","ID":"dingo"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_darwin_arm64.tar.gz","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_darwin_arm64.tar.gz","goos":"darwin","goarch":"arm64","goarm64":"v8.0","target":"darwin_arm64_v8.0","internal_type":1,"type":"Archive","extra":{"Binaries":["dingo"],"Checksum":"sha256:c51a06b85b0fb53ea5149152dbc5b7f77423eec9a3ca4230be2ef34d48aef2a5","Format":"tar.gz","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.tar.gz","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.tar.gz","goos":"linux","goarch":"arm64","goarm64":"v8.0","target":"linux_arm64_v8.0","internal_type":1,"type":"Archive","extra":{"Binaries":["dingo"],"Checksum":"sha256:87f24431d51ff63f0fe1e4f826ed63830a3ba83cf34342371332380cb025e78c","Format":"tar.gz","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_darwin_x86_64.tar.gz","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_darwin_x86_64.tar.gz","goos":"darwin","goarch":"amd64","goamd64":"v1","target":"darwin_amd64_v1","internal_type":1,"type":"Archive","extra":{"Binaries":["dingo"],"Checksum":"sha256:8a9a2d9d1dda0c5302cf01f2017f7b0f235f9a5b37df253410a3951630a99147","Format":"tar.gz","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_x86_64.tar.gz","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_x86_64.tar.gz","goos":"linux","goarch":"amd64","goamd64":"v1","target":"linux_amd64_v1","internal_type":1,"type":"Archive","extra":{"Binaries":["dingo"],"Checksum":"sha256:10a54437219ae7a105c57f2e5727bf58ad070815c7548081980b52505902d3a3","Format":"tar.gz","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"dingo-0.5.0-SNAPSHOT-d9431e4.tar.gz","path":"dist/dingo-0.5.0-SNAPSHOT-d9431e4.tar.gz","internal_type":15,"type":"Source","extra":{"Checksum":"sha256:0a14ca3f064209e429aa1788f319f7472244d0e30456c36d505a16242ccc7dcc","Format":"tar.gz"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.apk","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.apk","goos":"linux","goarch":"arm64","internal_type":6,"type":"Linux Package","extra":{"Checksum":"sha256:0fd9e95abafb1d950da2d99813b71d40fc67697c86b063e99d6e43500aaf3afa","Ext":".apk","Files":[{"src":"dist/dingo_linux_arm64_v8.0/dingo","dst":"/usr/bin/dingo","file_info":{"mode":493,"mtime":"0001-01-01T00:00:00Z"}}],"Format":"apk","ID":"default"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.rpm","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.rpm","goos":"linux","goarch":"amd64","goamd64":"v1","internal_type":6,"type":"Linux Package","extra":{"Checksum":"sha256:22b93584ca84cd03090ed565fe89b77072fc68381a816bd851450496e34d9cd9","Ext":".rpm","Files":[{"src":"dist/dingo_linux_amd64_v1/dingo","dst":"/usr/bin/dingo","file_info":{"mode":493,"mtime":"0001-01-01T00:00:00Z"}}],"Format":"rpm","ID":"default"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.rpm","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.rpm","goos":"linux","goarch":"arm64","internal_type":6,"type":"Linux Package","extra":{"Checksum":"sha256:2a4f00fa3a77baf7072ce7d95db424ceef756ae3c63541b0321934fed2f1ed4a","Ext":".rpm","Files":[{"src":"dist/dingo_linux_arm64_v8.0/dingo","dst":"/usr/bin/dingo","file_info":{"mode":493,"mtime":"0001-01-01T00:00:00Z"}}],"Format":"rpm","ID":"default"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.apk","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.apk","goos":"linux","goarch":"amd64","goamd64":"v1","internal_type":6,"type":"Linux Package","extra":{"Checksum":"sha256:c1f086922c55a0214251a1eb17960cb1c80f8234ba34fb3c77ab6ec4c008facd","Ext":".apk","Files":[{"src":"dist/dingo_linux_amd64_v1/dingo","dst":"/usr/bin/dingo","file_info":{"mode":493,"mtime":"0001-01-01T00:00:00Z"}}],"Format":"apk","ID":"default"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.deb","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.deb","goos":"linux","goarch":"arm64","internal_type":6,"type":"Linux Package","extra":{"Checksum":"sha256:913f51716e25ca4c6aa28204d78c32191754821055bf435fbb389846543ae288","Ext":".deb","Files":[{"src":"dist/dingo_linux_arm64_v8.0/dingo","dst":"/usr/bin/dingo","file_info":{"mode":493,"mtime":"0001-01-01T00:00:00Z"}}],"Format":"deb","ID":"default"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.deb","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.deb","goos":"linux","goarch":"amd64","goamd64":"v1","internal_type":6,"type":"Linux Package","extra":{"Checksum":"sha256:a21e42a502e738a178dba5a630cdf93d6365d6438f52cc460733e21e27032556","Ext":".deb","Files":[{"src":"dist/dingo_linux_amd64_v1/dingo","dst":"/usr/bin/dingo","file_info":{"mode":493,"mtime":"0001-01-01T00:00:00Z"}}],"Format":"deb","ID":"default"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.apk.sbom.json","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.apk.sbom.json","internal_type":25,"type":"SBOM","extra":{"Checksum":"sha256:787314657e78d5458ede3411d6b34637683bdc4db8d4071070c0564b43cdf75e","ID":"package"}},{"name":"dingo-0.5.0-SNAPSHOT-d9431e4.tar.gz.sbom.json","path":"dist/dingo-0.5.0-SNAPSHOT-d9431e4.tar.gz.sbom.json","internal_type":25,"type":"SBOM","extra":{"Checksum":"sha256:57e3dd8241e961ef9a700e0de6e1c5a6923ca165850752426a28243ca8cda878","ID":"source"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_darwin_arm64.tar.gz.sbom.json","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_darwin_arm64.tar.gz.sbom.json","internal_type":25,"type":"SBOM","extra":{"Checksum":"sha256:75a2a59c5e00f50238859ecfcd1b2a4640f0e5700d46cfe41d71e0600a10b35c","ID":"default"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.rpm.sbom.json","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.rpm.sbom.json","internal_type":25,"type":"SBOM","extra":{"Checksum":"sha256:509790df382bf93391bcb38015a98f7c106c5f1576bbad87f084286fb2aaf619","ID":"package"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.tar.gz.sbom.json","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.tar.gz.sbom.json","internal_type":25,"type":"SBOM","extra":{"Checksum":"sha256:a297cec2c4e772d288cda207f7dd3c10d8c2cf80daccfafb83dfae7a286dd7b3","ID":"default"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.rpm.sbom.json","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.rpm.sbom.json","internal_type":25,"type":"SBOM","extra":{"Checksum":"sha256:1445c98d4988427ed69b5d91fc6015fec30a11781f18aef080b72e0fa24a8ec0","ID":"package"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_darwin_x86_64.tar.gz.sbom.json","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_darwin_x86_64.tar.gz.sbom.json","internal_type":25,"type":"SBOM","extra":{"Checksum":"sha256:90968cb4b8f22f9106096024c59ae0ef77198fb291521b6532e5c929b336d47e","ID":"default"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.apk.sbom.json","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.apk.sbom.json","internal_type":25,"type":"SBOM","extra":{"Checksum":"sha256:6a7ad3beaa8d529f8bb7133ad6019d51a9fc88c205192a9abab119f0677b13c7","ID":"package"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_x86_64.tar.gz.sbom.json","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_x86_64.tar.gz.sbom.json","internal_type":25,"type":"SBOM","extra":{"Checksum":"sha256:1e21229f443ba8f4cc440dc67783e386466287ea9781d148a23db6e2dd68c20b","ID":"default"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.deb.sbom.json","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.deb.sbom.json","internal_type":25,"type":"SBOM","extra":{"Checksum":"sha256:6a4d7d2ace009be44eae4a97b6874c6b66b663c6495aaeeb4767d0176d7916a4","ID":"package"}},{"name":"dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.deb.sbom.json","path":"dist/dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.deb.sbom.json","internal_type":25,"type":"SBOM","extra":{"Checksum":"sha256:6f0bf669f3c343535405d094dba4dbe784e39110fc3a78beee4c424ff862b418","ID":"package"}},{"name":"checksums.txt","path":"dist/checksums.txt","internal_type":12,"type":"Checksum","extra":{}},{"name":"dingo.rb","path":"dist/homebrew/dingo.rb","internal_type":16,"type":"Brew Tap","extra":{"BrewConfig":{"name":"dingo","repository":{"owner":"blinklabs-io","name":"homebrew-cardano","git":{},"pull_request":{"enabled":true,"base":{}}},"commit_author":{"name":"goreleaserbot","email":"bot@goreleaser.com"},"commit_msg_template":"Brew formula update for {{ .ProjectName }} version {{ .Tag }}","description":"Dingo is a Cardano data node written in Go","homepage":"{{.GitURL}}","goarm":"6","goamd64":"v1"}}},{"name":"ghcr.io/blinklabs-io/dingo:0.5.0-SNAPSHOT-d9431e4-arm64v8","path":"ghcr.io/blinklabs-io/dingo:0.5.0-SNAPSHOT-d9431e4-arm64v8","goos":"linux","goarch":"arm64","goarm":"6","internal_type":9,"type":"Docker Image","extra":{"DockerConfig":{"id":"arm64","goos":"linux","goarch":"arm64","goarm":"6","goamd64":"v1","dockerfile":"Dockerfile","image_templates":["ghcr.io/blinklabs-io/dingo:{{ .Version }}-arm64v8","blinklabs/dingo:{{ .Version }}-arm64"],"build_flag_templates":["--pull","--label=org.opencontainers.image.created={{.Date}}","--label=org.opencontainers.image.name={{.ProjectName}}","--label=org.opencontainers.image.revision={{.FullCommit}}","--label=org.opencontainers.image.version={{.Version}}","--label=org.opencontainers.image.source={{.GitURL}}","--platform=linux/arm64/v8"],"use":"buildx"}}},{"name":"blinklabs/dingo:0.5.0-SNAPSHOT-d9431e4-arm64","path":"blinklabs/dingo:0.5.0-SNAPSHOT-d9431e4-arm64","goos":"linux","goarch":"arm64","goarm":"6","internal_type":9,"type":"Docker Image","extra":{"DockerConfig":{"id":"arm64","goos":"linux","goarch":"arm64","goarm":"6","goamd64":"v1","dockerfile":"Dockerfile","image_templates":["ghcr.io/blinklabs-io/dingo:{{ .Version }}-arm64v8","blinklabs/dingo:{{ .Version }}-arm64"],"build_flag_templates":["--pull","--label=org.opencontainers.image.created={{.Date}}","--label=org.opencontainers.image.name={{.ProjectName}}","--label=org.opencontainers.image.revision={{.FullCommit}}","--label=org.opencontainers.image.version={{.Version}}","--label=org.opencontainers.image.source={{.GitURL}}","--platform=linux/arm64/v8"],"use":"buildx"}}},{"name":"ghcr.io/blinklabs-io/dingo:0.5.0-SNAPSHOT-d9431e4-amd64","path":"ghcr.io/blinklabs-io/dingo:0.5.0-SNAPSHOT-d9431e4-amd64","goos":"linux","goarch":"amd64","goarm":"6","internal_type":9,"type":"Docker Image","extra":{"DockerConfig":{"id":"amd64","goos":"linux","goarch":"amd64","goarm":"6","goamd64":"v1","dockerfile":"Dockerfile","image_templates":["ghcr.io/blinklabs-io/dingo:{{ .Version }}-amd64","blinklabs/dingo:{{ .Version }}-amd64"],"build_flag_templates":["--pull","--label=org.opencontainers.image.created={{.Date}}","--label=org.opencontainers.image.name={{.ProjectName}}","--label=org.opencontainers.image.revision={{.FullCommit}}","--label=org.opencontainers.image.version={{.Version}}","--label=org.opencontainers.image.source={{.GitURL}}","--platform=linux/amd64"],"use":"buildx"}}},{"name":"blinklabs/dingo:0.5.0-SNAPSHOT-d9431e4-amd64","path":"blinklabs/dingo:0.5.0-SNAPSHOT-d9431e4-amd64","goos":"linux","goarch":"amd64","goarm":"6","internal_type":9,"type":"Docker Image","extra":{"DockerConfig":{"id":"amd64","goos":"linux","goarch":"amd64","goarm":"6","goamd64":"v1","dockerfile":"Dockerfile","image_templates":["ghcr.io/blinklabs-io/dingo:{{ .Version }}-amd64","blinklabs/dingo:{{ .Version }}-amd64"],"build_flag_templates":["--pull","--label=org.opencontainers.image.created={{.Date}}","--label=org.opencontainers.image.name={{.ProjectName}}","--label=org.opencontainers.image.revision={{.FullCommit}}","--label=org.opencontainers.image.version={{.Version}}","--label=org.opencontainers.image.source={{.GitURL}}","--platform=linux/amd64"],"use":"buildx"}}}]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
0a14ca3f064209e429aa1788f319f7472244d0e30456c36d505a16242ccc7dcc dingo-0.5.0-SNAPSHOT-d9431e4.tar.gz
|
|
2
|
+
57e3dd8241e961ef9a700e0de6e1c5a6923ca165850752426a28243ca8cda878 dingo-0.5.0-SNAPSHOT-d9431e4.tar.gz.sbom.json
|
|
3
|
+
c51a06b85b0fb53ea5149152dbc5b7f77423eec9a3ca4230be2ef34d48aef2a5 dingo_0.5.0-SNAPSHOT-d9431e4_darwin_arm64.tar.gz
|
|
4
|
+
75a2a59c5e00f50238859ecfcd1b2a4640f0e5700d46cfe41d71e0600a10b35c dingo_0.5.0-SNAPSHOT-d9431e4_darwin_arm64.tar.gz.sbom.json
|
|
5
|
+
8a9a2d9d1dda0c5302cf01f2017f7b0f235f9a5b37df253410a3951630a99147 dingo_0.5.0-SNAPSHOT-d9431e4_darwin_x86_64.tar.gz
|
|
6
|
+
90968cb4b8f22f9106096024c59ae0ef77198fb291521b6532e5c929b336d47e dingo_0.5.0-SNAPSHOT-d9431e4_darwin_x86_64.tar.gz.sbom.json
|
|
7
|
+
c1f086922c55a0214251a1eb17960cb1c80f8234ba34fb3c77ab6ec4c008facd dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.apk
|
|
8
|
+
6a7ad3beaa8d529f8bb7133ad6019d51a9fc88c205192a9abab119f0677b13c7 dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.apk.sbom.json
|
|
9
|
+
a21e42a502e738a178dba5a630cdf93d6365d6438f52cc460733e21e27032556 dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.deb
|
|
10
|
+
6f0bf669f3c343535405d094dba4dbe784e39110fc3a78beee4c424ff862b418 dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.deb.sbom.json
|
|
11
|
+
22b93584ca84cd03090ed565fe89b77072fc68381a816bd851450496e34d9cd9 dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.rpm
|
|
12
|
+
509790df382bf93391bcb38015a98f7c106c5f1576bbad87f084286fb2aaf619 dingo_0.5.0-SNAPSHOT-d9431e4_linux_amd64.rpm.sbom.json
|
|
13
|
+
0fd9e95abafb1d950da2d99813b71d40fc67697c86b063e99d6e43500aaf3afa dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.apk
|
|
14
|
+
787314657e78d5458ede3411d6b34637683bdc4db8d4071070c0564b43cdf75e dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.apk.sbom.json
|
|
15
|
+
913f51716e25ca4c6aa28204d78c32191754821055bf435fbb389846543ae288 dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.deb
|
|
16
|
+
6a4d7d2ace009be44eae4a97b6874c6b66b663c6495aaeeb4767d0176d7916a4 dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.deb.sbom.json
|
|
17
|
+
2a4f00fa3a77baf7072ce7d95db424ceef756ae3c63541b0321934fed2f1ed4a dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.rpm
|
|
18
|
+
1445c98d4988427ed69b5d91fc6015fec30a11781f18aef080b72e0fa24a8ec0 dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.rpm.sbom.json
|
|
19
|
+
87f24431d51ff63f0fe1e4f826ed63830a3ba83cf34342371332380cb025e78c dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.tar.gz
|
|
20
|
+
a297cec2c4e772d288cda207f7dd3c10d8c2cf80daccfafb83dfae7a286dd7b3 dingo_0.5.0-SNAPSHOT-d9431e4_linux_arm64.tar.gz.sbom.json
|
|
21
|
+
10a54437219ae7a105c57f2e5727bf58ad070815c7548081980b52505902d3a3 dingo_0.5.0-SNAPSHOT-d9431e4_linux_x86_64.tar.gz
|
|
22
|
+
1e21229f443ba8f4cc440dc67783e386466287ea9781d148a23db6e2dd68c20b dingo_0.5.0-SNAPSHOT-d9431e4_linux_x86_64.tar.gz.sbom.json
|
package/dist/config.yaml
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
project_name: dingo
|
|
3
|
+
release:
|
|
4
|
+
github:
|
|
5
|
+
owner: blinklabs-io
|
|
6
|
+
name: dingo
|
|
7
|
+
name_template: '{{.Tag}}'
|
|
8
|
+
footer: |2-
|
|
9
|
+
---
|
|
10
|
+
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
|
|
11
|
+
brews:
|
|
12
|
+
- name: dingo
|
|
13
|
+
repository:
|
|
14
|
+
owner: blinklabs-io
|
|
15
|
+
name: homebrew-cardano
|
|
16
|
+
pull_request:
|
|
17
|
+
enabled: true
|
|
18
|
+
commit_author:
|
|
19
|
+
name: goreleaserbot
|
|
20
|
+
email: bot@goreleaser.com
|
|
21
|
+
commit_msg_template: Brew formula update for {{ .ProjectName }} version {{ .Tag }}
|
|
22
|
+
description: Dingo is a Cardano data node written in Go
|
|
23
|
+
homepage: '{{.GitURL}}'
|
|
24
|
+
goarm: "6"
|
|
25
|
+
goamd64: v1
|
|
26
|
+
builds:
|
|
27
|
+
- id: dingo
|
|
28
|
+
goos:
|
|
29
|
+
- linux
|
|
30
|
+
- darwin
|
|
31
|
+
goarch:
|
|
32
|
+
- amd64
|
|
33
|
+
- arm64
|
|
34
|
+
goamd64:
|
|
35
|
+
- v1
|
|
36
|
+
go386:
|
|
37
|
+
- sse2
|
|
38
|
+
goarm:
|
|
39
|
+
- "6"
|
|
40
|
+
goarm64:
|
|
41
|
+
- v8.0
|
|
42
|
+
gomips:
|
|
43
|
+
- hardfloat
|
|
44
|
+
goppc64:
|
|
45
|
+
- power8
|
|
46
|
+
goriscv64:
|
|
47
|
+
- rva20u64
|
|
48
|
+
targets:
|
|
49
|
+
- linux_amd64_v1
|
|
50
|
+
- linux_arm64_v8.0
|
|
51
|
+
- darwin_amd64_v1
|
|
52
|
+
- darwin_arm64_v8.0
|
|
53
|
+
dir: .
|
|
54
|
+
main: ./cmd/dingo
|
|
55
|
+
binary: dingo
|
|
56
|
+
builder: go
|
|
57
|
+
mod_timestamp: '{{ .CommitTimestamp }}'
|
|
58
|
+
tool: go
|
|
59
|
+
command: build
|
|
60
|
+
ldflags:
|
|
61
|
+
- -s -w -X github.com/blinklabs-io/dingo/internal/version.Version={{.Version}} -X github.com/blinklabs-io/dingo/internal/version.CommitHash={{.Commit}}
|
|
62
|
+
flags:
|
|
63
|
+
- -trimpath
|
|
64
|
+
env:
|
|
65
|
+
- CGO_ENABLED=0
|
|
66
|
+
archives:
|
|
67
|
+
- id: default
|
|
68
|
+
builds_info:
|
|
69
|
+
mode: 493
|
|
70
|
+
name_template: '{{ .ProjectName }}_{{ .Version }}_ {{- if eq .Os "Darwin" }}darwin_ {{- else if eq .Os "Windows" }}windows_ {{- else }}{{ .Os }}_{{ end }} {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }}'
|
|
71
|
+
formats:
|
|
72
|
+
- tar.gz
|
|
73
|
+
format_overrides:
|
|
74
|
+
- goos: windows
|
|
75
|
+
formats:
|
|
76
|
+
- zip
|
|
77
|
+
files:
|
|
78
|
+
- src: license*
|
|
79
|
+
- src: LICENSE*
|
|
80
|
+
- src: readme*
|
|
81
|
+
- src: README*
|
|
82
|
+
- src: changelog*
|
|
83
|
+
- src: CHANGELOG*
|
|
84
|
+
nfpms:
|
|
85
|
+
- file_name_template: '{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
|
|
86
|
+
package_name: dingo
|
|
87
|
+
id: default
|
|
88
|
+
formats:
|
|
89
|
+
- apk
|
|
90
|
+
- deb
|
|
91
|
+
- rpm
|
|
92
|
+
maintainer: Blink Labs Software <support@blinklabs.io>
|
|
93
|
+
bindir: /usr/bin
|
|
94
|
+
libdirs:
|
|
95
|
+
header: /usr/include
|
|
96
|
+
carchive: /usr/lib
|
|
97
|
+
cshared: /usr/lib
|
|
98
|
+
snapshot:
|
|
99
|
+
version_template: '{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}'
|
|
100
|
+
checksum:
|
|
101
|
+
name_template: checksums.txt
|
|
102
|
+
algorithm: sha256
|
|
103
|
+
dockers:
|
|
104
|
+
- id: amd64
|
|
105
|
+
goos: linux
|
|
106
|
+
goarch: amd64
|
|
107
|
+
goarm: "6"
|
|
108
|
+
goamd64: v1
|
|
109
|
+
dockerfile: Dockerfile
|
|
110
|
+
image_templates:
|
|
111
|
+
- ghcr.io/blinklabs-io/dingo:{{ .Version }}-amd64
|
|
112
|
+
- blinklabs/dingo:{{ .Version }}-amd64
|
|
113
|
+
build_flag_templates:
|
|
114
|
+
- --pull
|
|
115
|
+
- --label=org.opencontainers.image.created={{.Date}}
|
|
116
|
+
- --label=org.opencontainers.image.name={{.ProjectName}}
|
|
117
|
+
- --label=org.opencontainers.image.revision={{.FullCommit}}
|
|
118
|
+
- --label=org.opencontainers.image.version={{.Version}}
|
|
119
|
+
- --label=org.opencontainers.image.source={{.GitURL}}
|
|
120
|
+
- --platform=linux/amd64
|
|
121
|
+
use: buildx
|
|
122
|
+
- id: arm64
|
|
123
|
+
goos: linux
|
|
124
|
+
goarch: arm64
|
|
125
|
+
goarm: "6"
|
|
126
|
+
goamd64: v1
|
|
127
|
+
dockerfile: Dockerfile
|
|
128
|
+
image_templates:
|
|
129
|
+
- ghcr.io/blinklabs-io/dingo:{{ .Version }}-arm64v8
|
|
130
|
+
- blinklabs/dingo:{{ .Version }}-arm64
|
|
131
|
+
build_flag_templates:
|
|
132
|
+
- --pull
|
|
133
|
+
- --label=org.opencontainers.image.created={{.Date}}
|
|
134
|
+
- --label=org.opencontainers.image.name={{.ProjectName}}
|
|
135
|
+
- --label=org.opencontainers.image.revision={{.FullCommit}}
|
|
136
|
+
- --label=org.opencontainers.image.version={{.Version}}
|
|
137
|
+
- --label=org.opencontainers.image.source={{.GitURL}}
|
|
138
|
+
- --platform=linux/arm64/v8
|
|
139
|
+
use: buildx
|
|
140
|
+
docker_manifests:
|
|
141
|
+
- name_template: ghcr.io/blinklabs-io/dingo:{{ .Version }}
|
|
142
|
+
image_templates:
|
|
143
|
+
- ghcr.io/blinklabs-io/dingo:{{ .Version }}-amd64
|
|
144
|
+
- ghcr.io/blinklabs-io/dingo:{{ .Version }}-arm64v8
|
|
145
|
+
use: docker
|
|
146
|
+
- name_template: blinklabs/dingo:{{ .Version }}
|
|
147
|
+
image_templates:
|
|
148
|
+
- blinklabs-io/dingo:{{ .Version }}-amd64
|
|
149
|
+
- blinklabs-io/dingo:{{ .Version }}-arm64v8
|
|
150
|
+
use: docker
|
|
151
|
+
changelog:
|
|
152
|
+
use: github-native
|
|
153
|
+
format: '{{ .SHA }}: {{ .Message }} ({{ with .AuthorUsername }}@{{ . }}{{ else }}{{ .AuthorName }} <{{ .AuthorEmail }}>{{ end }})'
|
|
154
|
+
dist: dist
|
|
155
|
+
env_files:
|
|
156
|
+
github_token: ~/.config/goreleaser/github_token
|
|
157
|
+
gitlab_token: ~/.config/goreleaser/gitlab_token
|
|
158
|
+
gitea_token: ~/.config/goreleaser/gitea_token
|
|
159
|
+
before:
|
|
160
|
+
hooks:
|
|
161
|
+
- go mod tidy
|
|
162
|
+
source:
|
|
163
|
+
name_template: '{{ .ProjectName }}-{{ .Version }}'
|
|
164
|
+
format: tar.gz
|
|
165
|
+
enabled: true
|
|
166
|
+
gomod:
|
|
167
|
+
proxy: true
|
|
168
|
+
gobinary: go
|
|
169
|
+
announce:
|
|
170
|
+
twitter:
|
|
171
|
+
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
|
|
172
|
+
mastodon:
|
|
173
|
+
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
|
|
174
|
+
server: ""
|
|
175
|
+
reddit:
|
|
176
|
+
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
|
|
177
|
+
url_template: '{{ .ReleaseURL }}'
|
|
178
|
+
slack:
|
|
179
|
+
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
|
|
180
|
+
username: GoReleaser
|
|
181
|
+
discord:
|
|
182
|
+
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
|
|
183
|
+
author: GoReleaser
|
|
184
|
+
color: "3888754"
|
|
185
|
+
icon_url: https://goreleaser.com/static/avatar.png
|
|
186
|
+
teams:
|
|
187
|
+
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
|
|
188
|
+
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
|
|
189
|
+
color: '#2D313E'
|
|
190
|
+
icon_url: https://goreleaser.com/static/avatar.png
|
|
191
|
+
smtp:
|
|
192
|
+
subject_template: '{{ .ProjectName }} {{ .Tag }} is out!'
|
|
193
|
+
body_template: 'You can view details from: {{ .ReleaseURL }}'
|
|
194
|
+
mattermost:
|
|
195
|
+
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
|
|
196
|
+
title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
|
|
197
|
+
username: GoReleaser
|
|
198
|
+
linkedin:
|
|
199
|
+
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
|
|
200
|
+
telegram:
|
|
201
|
+
message_template: '{{ mdv2escape .ProjectName }} {{ mdv2escape .Tag }} is out{{ mdv2escape "!" }} Check it out at {{ mdv2escape .ReleaseURL }}'
|
|
202
|
+
parse_mode: MarkdownV2
|
|
203
|
+
webhook:
|
|
204
|
+
message_template: '{ "message": "{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}"}'
|
|
205
|
+
content_type: application/json; charset=utf-8
|
|
206
|
+
expected_status_codes:
|
|
207
|
+
- 200
|
|
208
|
+
- 201
|
|
209
|
+
- 202
|
|
210
|
+
- 204
|
|
211
|
+
opencollective:
|
|
212
|
+
title_template: '{{ .Tag }}'
|
|
213
|
+
message_template: '{{ .ProjectName }} {{ .Tag }} is out!<br/>Check it out at <a href="{{ .ReleaseURL }}">{{ .ReleaseURL }}</a>'
|
|
214
|
+
bluesky:
|
|
215
|
+
message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
|
|
216
|
+
sboms:
|
|
217
|
+
- id: default
|
|
218
|
+
cmd: syft
|
|
219
|
+
env:
|
|
220
|
+
- SYFT_FILE_METADATA_CATALOGER_ENABLED=true
|
|
221
|
+
args:
|
|
222
|
+
- $artifact
|
|
223
|
+
- --output
|
|
224
|
+
- spdx-json=$document
|
|
225
|
+
documents:
|
|
226
|
+
- '{{ .ArtifactName }}.sbom.json'
|
|
227
|
+
artifacts: archive
|
|
228
|
+
- id: source
|
|
229
|
+
cmd: syft
|
|
230
|
+
env:
|
|
231
|
+
- SYFT_FILE_METADATA_CATALOGER_ENABLED=true
|
|
232
|
+
args:
|
|
233
|
+
- $artifact
|
|
234
|
+
- --output
|
|
235
|
+
- spdx-json=$document
|
|
236
|
+
documents:
|
|
237
|
+
- '{{ .ArtifactName }}.sbom.json'
|
|
238
|
+
artifacts: source
|
|
239
|
+
- id: package
|
|
240
|
+
cmd: syft
|
|
241
|
+
args:
|
|
242
|
+
- $artifact
|
|
243
|
+
- --output
|
|
244
|
+
- spdx-json=$document
|
|
245
|
+
documents:
|
|
246
|
+
- '{{ .ArtifactName }}.sbom.json'
|
|
247
|
+
artifacts: package
|
|
248
|
+
git:
|
|
249
|
+
tag_sort: -version:refname
|
|
250
|
+
github_urls:
|
|
251
|
+
download: https://github.com
|
|
252
|
+
gitlab_urls:
|
|
253
|
+
download: https://gitlab.com
|
|
Binary file
|