Skip to content

Commit

Permalink
replace golang.org/x/exp/slices with slices
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidzr committed Aug 17, 2023
1 parent dac16da commit a06ee52
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion agent/internal/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package container
import (
"context"
"fmt"
"slices"
"strings"
"sync"
"syscall"

"github.com/pkg/errors"
"golang.org/x/exp/slices"

"github.com/sirupsen/logrus"

Expand Down
2 changes: 1 addition & 1 deletion agent/internal/containers/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package containers
import (
"fmt"
"path/filepath"
"slices"
"strconv"
"strings"

dcontainer "github.com/docker/docker/api/types/container"

"github.com/docker/docker/api/types"
"github.com/pkg/errors"
"golang.org/x/exp/slices"

"github.com/determined-ai/determined/agent/internal/container"
"github.com/determined-ai/determined/agent/internal/detect"
Expand Down
2 changes: 1 addition & 1 deletion agent/pkg/cruntimes/crutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
"path"
"path/filepath"
"regexp"
"slices"
"strings"

"github.com/docker/docker/pkg/stdcopy"
"github.com/sirupsen/logrus"
"golang.org/x/exp/slices"

"github.com/determined-ai/determined/agent/pkg/docker"
"github.com/determined-ai/determined/agent/pkg/events"
Expand Down
3 changes: 1 addition & 2 deletions master/internal/api_experiment.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"math"
"net/http"
"slices"
"sort"
"strconv"
"strings"
Expand All @@ -15,8 +16,6 @@ import (

"github.com/determined-ai/determined/master/internal/job/jobservice"

"golang.org/x/exp/slices"

"github.com/labstack/echo/v4"
"github.com/uptrace/bun"

Expand Down
2 changes: 1 addition & 1 deletion master/internal/api_tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package internal
import (
"context"
"fmt"
"slices"
"strings"
"time"

structpb "github.com/golang/protobuf/ptypes/struct"
"github.com/pkg/errors"
"golang.org/x/exp/slices"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

Expand Down
2 changes: 1 addition & 1 deletion master/internal/api_trials.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"context"
"fmt"
"math"
"slices"
"sort"
"strings"
"time"

"github.com/hashicorp/go-multierror"
"github.com/pkg/errors"
"golang.org/x/exp/slices"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/encoding/protojson"
Expand Down
2 changes: 1 addition & 1 deletion master/internal/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package command
import (
"context"
"fmt"
"slices"
"time"

"github.com/determined-ai/determined/master/internal/job/jobservice"

"golang.org/x/exp/slices"
"google.golang.org/protobuf/types/known/timestamppb"

"github.com/determined-ai/determined/master/pkg/cproto"
Expand Down
2 changes: 1 addition & 1 deletion master/internal/db/postgres_tasks_intg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"go/parser"
"go/token"
"reflect"
"slices"
"strings"
"testing"
"time"

"github.com/shopspring/decimal"
"golang.org/x/exp/slices"

"github.com/stretchr/testify/require"

Expand Down
2 changes: 1 addition & 1 deletion master/internal/experiment/bulk_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"context"
"database/sql"
"fmt"
"slices"
"strconv"
"strings"

"golang.org/x/exp/slices"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

Expand Down
3 changes: 1 addition & 2 deletions master/internal/experiment_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ package internal

import (
"fmt"
"slices"
"strings"

"github.com/uptrace/bun"

"golang.org/x/exp/slices"

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

Expand Down
3 changes: 1 addition & 2 deletions master/internal/job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ package job

import (
"fmt"
"slices"
"sort"
"strings"
"sync"

"golang.org/x/exp/slices"

"github.com/pkg/errors"
"github.com/sirupsen/logrus"

Expand Down
2 changes: 1 addition & 1 deletion master/internal/task/tasklogger/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package tasklogger_test

import (
"fmt"
"slices"
"sync"
"testing"
"time"

"github.com/stretchr/testify/require"
"golang.org/x/exp/slices"

"github.com/determined-ai/determined/master/internal/task/tasklogger"
"github.com/determined-ai/determined/master/pkg/model"
Expand Down
2 changes: 1 addition & 1 deletion master/internal/usergroup/postgres_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package usergroup
import (
"context"
"database/sql"
"slices"

"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"github.com/uptrace/bun"
"golang.org/x/exp/slices"

"github.com/determined-ai/determined/master/internal/db"
"github.com/determined-ai/determined/master/pkg/model"
Expand Down
2 changes: 1 addition & 1 deletion master/pkg/cproto/container.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cproto

import (
"golang.org/x/exp/slices"
"slices"

"github.com/determined-ai/determined/master/pkg/check"
"github.com/determined-ai/determined/master/pkg/device"
Expand Down
2 changes: 1 addition & 1 deletion master/pkg/cproto/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package cproto

import (
"fmt"
"slices"

"github.com/docker/docker/api/types"
"github.com/pkg/errors"
"golang.org/x/exp/slices"

"github.com/determined-ai/determined/master/pkg/check"
"github.com/determined-ai/determined/proto/pkg/containerv1"
Expand Down
2 changes: 1 addition & 1 deletion master/pkg/model/task_container_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package model
import (
"encoding/json"
"fmt"
"slices"
"strings"

"github.com/docker/docker/api/types"
"github.com/jinzhu/copier"
"golang.org/x/exp/slices"

k8sV1 "k8s.io/api/core/v1"

Expand Down

0 comments on commit a06ee52

Please sign in to comment.