Skip to content

Commit

Permalink
pkg: replace algorithms with go.bug.st/f
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-perugini committed Jan 13, 2025
1 parent 34e79e1 commit da031ce
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion commands/service_board_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

"github.com/arduino/arduino-cli/commands/cmderrors"
"github.com/arduino/arduino-cli/commands/internal/instances"
f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/arduino/discovery/discoverymanager"
"github.com/arduino/arduino-cli/internal/i18n"
"github.com/arduino/arduino-cli/pkg/fqbn"
Expand Down
2 changes: 1 addition & 1 deletion commands/service_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"reflect"

"github.com/arduino/arduino-cli/commands/cmderrors"
f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/cli/configuration"
"github.com/arduino/arduino-cli/internal/go-configmap"
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
Expand Down
2 changes: 1 addition & 1 deletion commands/service_upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

"github.com/arduino/arduino-cli/commands/cmderrors"
"github.com/arduino/arduino-cli/commands/internal/instances"
f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/arduino/cores"
"github.com/arduino/arduino-cli/internal/arduino/cores/packagemanager"
"github.com/arduino/arduino-cli/internal/arduino/globals"
Expand Down
2 changes: 1 addition & 1 deletion internal/algorithms/slices_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"strings"
"testing"

f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/arduino/builder/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"os"
"strings"

f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/arduino/builder/cpp"
"github.com/arduino/arduino-cli/internal/arduino/builder/internal/utils"
"github.com/arduino/arduino-cli/internal/buildcache"
Expand Down
2 changes: 1 addition & 1 deletion internal/arduino/builder/internal/preprocessor/gcc.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"strings"

f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/arduino/builder/cpp"
"github.com/arduino/arduino-cli/internal/i18n"
"github.com/arduino/go-paths-helper"
Expand Down
2 changes: 1 addition & 1 deletion internal/arduino/builder/internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"strings"
"unicode"

f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/go-paths-helper"
"github.com/sirupsen/logrus"
"golang.org/x/text/runes"
Expand Down
2 changes: 1 addition & 1 deletion internal/arduino/builder/libraries.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"strings"
"time"

f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/arduino/builder/cpp"
"github.com/arduino/arduino-cli/internal/arduino/libraries"
"github.com/arduino/arduino-cli/internal/i18n"
Expand Down
2 changes: 1 addition & 1 deletion internal/arduino/builder/linker.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package builder
import (
"strings"

f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/i18n"
"github.com/arduino/go-paths-helper"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/arduino/builder/sketch.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"strings"

"fortio.org/safecast"
f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/arduino/builder/cpp"
"github.com/arduino/arduino-cli/internal/i18n"
"github.com/arduino/go-paths-helper"
Expand Down
2 changes: 1 addition & 1 deletion internal/arduino/sketch/sketch.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"strings"

"github.com/arduino/arduino-cli/commands/cmderrors"
f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/arduino/globals"
"github.com/arduino/arduino-cli/internal/i18n"
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/arguments/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package arguments
import (
"context"

f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/cli/instance"
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/arguments/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

"github.com/arduino/arduino-cli/commands"

Check failure on line 24 in internal/cli/arguments/port.go

View workflow job for this annotation

GitHub Actions / check-style (./)

could not import github.com/arduino/arduino-cli/commands (-: # github.com/arduino/arduino-cli/commands

Check failure on line 24 in internal/cli/arguments/port.go

View workflow job for this annotation

GitHub Actions / check-style (./)

could not import github.com/arduino/arduino-cli/commands (-: # github.com/arduino/arduino-cli/commands
"github.com/arduino/arduino-cli/commands/cmderrors"
f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/i18n"
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
"github.com/sirupsen/logrus"
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/arguments/sketch.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package arguments
import (
"context"

f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/cli/feedback"
"github.com/arduino/arduino-cli/internal/i18n"
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"os"
"strings"

f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/cli/feedback"
"github.com/arduino/arduino-cli/internal/i18n"
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/config/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"encoding/json"
"os"

f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/cli/feedback"
"github.com/arduino/arduino-cli/internal/i18n"
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/feedback/result/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"slices"

f "github.com/arduino/arduino-cli/internal/algorithms"
"go.bug.st/f"
"github.com/arduino/arduino-cli/internal/i18n"
"github.com/arduino/arduino-cli/internal/orderedmap"
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
Expand Down

0 comments on commit da031ce

Please sign in to comment.