Skip to content

Commit

Permalink
build(deps): bump go.einride.tech/sage from 0.265.1 to 0.268.0 in /.sage
Browse files Browse the repository at this point in the history
Bumps [go.einride.tech/sage](https://github.com/einride/sage) from 0.265.1 to 0.268.0.
- [Release notes](https://github.com/einride/sage/releases)
- [Commits](einride/sage@v0.265.1...v0.268.0)

---
updated-dependencies:
- dependency-name: go.einride.tech/sage
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] authored and maxekman committed Feb 20, 2024
1 parent 901ab9e commit 238076f
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .sage/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module go.einride.tech/can/.sage

go 1.19

require go.einride.tech/sage v0.265.1
require go.einride.tech/sage v0.268.0
4 changes: 2 additions & 2 deletions .sage/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
go.einride.tech/sage v0.265.1 h1:q3vZbehb1EqxjY2IsJNjIayBjBHU/uKD96fDz22rauM=
go.einride.tech/sage v0.265.1/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
go.einride.tech/sage v0.268.0 h1:/NKvKzhIis1izBHPwK4YbRWYLL5+q+oVOANt8Z7snWA=
go.einride.tech/sage v0.268.0/go.mod h1:EzV5uciFX7/2ho8EKB5K9JghOfXIxlzs694b+Tkl5GQ=
6 changes: 3 additions & 3 deletions cmd/cantool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func generateCommand(app *kingpin.Application) {
Arg("output-dir", "output directory").
Required().
String()
command.Action(func(c *kingpin.ParseContext) error {
command.Action(func(_ *kingpin.ParseContext) error {
return filepath.Walk(*inputDir, func(p string, i os.FileInfo, err error) error {
if err != nil {
return err
Expand All @@ -76,7 +76,7 @@ func lintCommand(app *kingpin.Application) {
Arg("file-or-dir", "DBC file or directory").
Required().
ExistingFileOrDir()
command.Action(func(context *kingpin.ParseContext) error {
command.Action(func(_ *kingpin.ParseContext) error {
filesToLint, err := resolveFileOrDirectory(*fileOrDir)
if err != nil {
return err
Expand Down Expand Up @@ -176,7 +176,7 @@ func resolveFileOrDirectory(fileOrDirectory string) ([]string, error) {
return []string{fileOrDirectory}, nil
}
var files []string
if err := filepath.Walk(fileOrDirectory, func(path string, info os.FileInfo, err error) error {
if err := filepath.Walk(fileOrDirectory, func(path string, info os.FileInfo, _ error) error {
if !info.IsDir() && filepath.Ext(path) == ".dbc" {
files = append(files, path)
}
Expand Down
8 changes: 4 additions & 4 deletions data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func TestData_LittleEndian(t *testing.T) {
var data Data
for j, signal := range tt.signals {
j, signal := j, signal
t.Run(fmt.Sprintf("data:%v", j), func(t *testing.T) {
t.Run(fmt.Sprintf("data:%v", j), func(_ *testing.T) {
data.SetUnsignedBitsLittleEndian(signal.start, signal.length, signal.unsigned)
})
}
Expand All @@ -160,7 +160,7 @@ func TestData_LittleEndian(t *testing.T) {
var data Data
for j, signal := range tt.signals {
j, signal := j, signal
t.Run(fmt.Sprintf("data:%v", j), func(t *testing.T) {
t.Run(fmt.Sprintf("data:%v", j), func(_ *testing.T) {
data.SetSignedBitsLittleEndian(signal.start, signal.length, signal.signed)
})
}
Expand Down Expand Up @@ -251,7 +251,7 @@ func TestData_BigEndian(t *testing.T) {
var data Data
for j, signal := range tt.signals {
j, signal := j, signal
t.Run(fmt.Sprintf("data:%v", j), func(t *testing.T) {
t.Run(fmt.Sprintf("data:%v", j), func(_ *testing.T) {
data.SetUnsignedBitsBigEndian(signal.start, signal.length, signal.unsigned)
})
}
Expand All @@ -261,7 +261,7 @@ func TestData_BigEndian(t *testing.T) {
var data Data
for j, signal := range tt.signals {
j, signal := j, signal
t.Run(fmt.Sprintf("data:%v", j), func(t *testing.T) {
t.Run(fmt.Sprintf("data:%v", j), func(_ *testing.T) {
data.SetSignedBitsBigEndian(signal.start, signal.length, signal.signed)
})
}
Expand Down
2 changes: 2 additions & 0 deletions frame_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ type jsonFrame struct {
//
// {"id":32,"data":"0102030405060708"}
// {"id":32,"extended":true,"remote":true,"length":4}
//
//nolint:goconst
func (f Frame) JSON() string {
switch {
case f.IsRemote && f.IsExtended:
Expand Down
2 changes: 1 addition & 1 deletion internal/generate/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func TestExample_Node_NoEmptyMessages(t *testing.T) {
motor := examplecan.NewMOTOR("can", "vcan0")
// when starting them
ctx, cancel := context.WithTimeout(context.Background(), testTimeout)
handler := func(ctx context.Context) error {
handler := func(_ context.Context) error {
motor.Lock()
motor.Tx().MotorStatus().SetSpeedKph(100).SetWheelError(true)
motor.Unlock()
Expand Down
1 change: 1 addition & 0 deletions internal/generate/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ func txGroupInterface(n *descriptor.Node) string {
return n.Name + "_Tx"
}

//nolint:goconst
func txGroupStruct(n *descriptor.Node) string {
return "xxx_" + n.Name + "_Tx"
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/socketcan/transmitter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestTransmitter_TransmitMessage(t *testing.T) {

// Frame Interceptor
run := false
intFunc := func(fr can.Frame) {
intFunc := func(_ can.Frame) {
run = true
}
testTransmit(TransmitterFrameInterceptor(intFunc))
Expand Down

0 comments on commit 238076f

Please sign in to comment.