Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ linters:
- promlinter
- protogetter
- reassign
- revive
- rowserrcheck
- sloglint
- spancheck
Expand All @@ -78,8 +77,8 @@ linters:
rules:
main:
files:
- '!**/ierrors.go'
- '!**/ierrors_no_stacktrace.go'
- "!**/ierrors.go"
- "!**/ierrors_no_stacktrace.go"
deny:
- pkg: errors
desc: Should be replaced with "github.com/iotaledger/hive.go/ierrors" package
Expand Down
2 changes: 1 addition & 1 deletion apputils/config/json.go → app/apputils/config/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/iancoleman/orderedmap"
flag "github.com/spf13/pflag"

"github.com/iotaledger/hive.go/app/apputils/parameter"
"github.com/iotaledger/hive.go/app/configuration"
"github.com/iotaledger/hive.go/apputils/parameter"
)

type parameterMapJSON struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/fbiville/markdown-table-formatter/pkg/markdown"
flag "github.com/spf13/pflag"

"github.com/iotaledger/hive.go/app/apputils/parameter"
"github.com/iotaledger/hive.go/app/configuration"
"github.com/iotaledger/hive.go/apputils/parameter"
)

func escapeAsterisk(text string) string {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import (
"github.com/iotaledger/hive.go/ierrors"
)

var (
ErrUnknownEntryType = ierrors.New("unknown entry type")
)
var ErrUnknownEntryType = ierrors.New("unknown entry type")

//nolint:revive // better be explicit here
type ParameterGroup struct {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

"fortio.org/safecast"

"github.com/knadh/koanf"
"github.com/knadh/koanf/providers/env"
"github.com/knadh/koanf/providers/file"
"github.com/knadh/koanf/v2"
flag "github.com/spf13/pflag"

"github.com/iotaledger/hive.go/ierrors"
Expand Down
2 changes: 1 addition & 1 deletion app/configuration/getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"time"

"github.com/knadh/koanf"
"github.com/knadh/koanf/v2"
)

// All returns a map of all flattened key paths and their values.
Expand Down
2 changes: 1 addition & 1 deletion app/configuration/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package configuration
import (
"strings"

"github.com/knadh/koanf"
"github.com/knadh/koanf/maps"
"github.com/knadh/koanf/providers/posflag"
"github.com/knadh/koanf/v2"
"github.com/spf13/pflag"

"github.com/iotaledger/hive.go/ierrors"
Expand Down
2 changes: 1 addition & 1 deletion app/configuration/setter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package configuration
import (
"strings"

"github.com/knadh/koanf"
"github.com/knadh/koanf/providers/confmap"
"github.com/knadh/koanf/providers/structs"
"github.com/knadh/koanf/v2"
)

// SetDefault sets the default value for the key (case-insensitive).
Expand Down
22 changes: 15 additions & 7 deletions app/go.mod
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
module github.com/iotaledger/hive.go/app

go 1.22
go 1.23.0

require (
fortio.org/safecast v1.0.0
github.com/fbiville/markdown-table-formatter v0.3.0
github.com/felixge/fgprof v0.9.4
github.com/hashicorp/go-version v1.6.0
github.com/iancoleman/orderedmap v0.3.0
github.com/iotaledger/hive.go/ierrors v0.0.0-20240517131232-748f1ce3a2d2
github.com/iotaledger/hive.go/lo v0.0.0-20240517131232-748f1ce3a2d2
github.com/iotaledger/hive.go/log v0.0.0-20240517131232-748f1ce3a2d2
github.com/iotaledger/hive.go/runtime v0.0.0-20240517131232-748f1ce3a2d2
github.com/knadh/koanf v1.5.0
github.com/knadh/koanf/maps v0.1.2
github.com/knadh/koanf/providers/confmap v1.0.0
github.com/knadh/koanf/providers/env v1.1.0
github.com/knadh/koanf/providers/file v1.2.0
github.com/knadh/koanf/providers/posflag v1.0.1
github.com/knadh/koanf/providers/rawbytes v1.0.0
github.com/knadh/koanf/providers/structs v1.0.0
github.com/knadh/koanf/v2 v2.3.0
github.com/spf13/cast v1.6.0
github.com/spf13/pflag v1.0.5
github.com/spf13/pflag v1.0.6
github.com/stretchr/testify v1.9.0
github.com/tcnksm/go-latest v0.0.0-20170313132115-e3007ae9052e
go.uber.org/dig v1.17.1
Expand All @@ -23,25 +32,24 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/ethereum/go-ethereum v1.14.3 // indirect
github.com/fatih/structs v1.1.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/google/go-github v17.0.0+incompatible // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/pprof v0.0.0-20240509144519-723abb6459b7 // indirect
github.com/holiman/uint256 v1.2.4 // indirect
github.com/iancoleman/orderedmap v0.3.0 // indirect
github.com/iotaledger/hive.go/constraints v0.0.0-20240517131232-748f1ce3a2d2 // indirect
github.com/iotaledger/hive.go/ds v0.0.0-20240517131232-748f1ce3a2d2 // indirect
github.com/iotaledger/hive.go/serializer/v2 v2.0.0-rc.1.0.20240517131232-748f1ce3a2d2 // indirect
github.com/iotaledger/hive.go/stringify v0.0.0-20240517131232-748f1ce3a2d2 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/petermattis/goid v0.0.0-20240503122002-4b96552b8156 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/sasha-s/go-deadlock v0.3.1 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/sys v0.32.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading
Loading