Skip to content

Commit

Permalink
chore: upgrade yaml lib to sigs.k8s.io/yaml
Browse files Browse the repository at this point in the history
Signed-off-by: francois.samin <francois.samin@corp.ovh.com>
  • Loading branch information
fsamin authored and rclsilver committed Mar 25, 2024
1 parent 447d6cf commit a9c343e
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 26 deletions.
1 change: 0 additions & 1 deletion LICENSES/LICENSES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ github.com/fabienm/go-logrus-formatters; MIT
github.com/facebookgo/httpcontrol; BSD-3-Clause
github.com/fsnotify/fsnotify; BSD-3-Clause
github.com/gabriel-vasile/mimetype; MIT
github.com/ghodss/yaml; BSD-3-Clause
github.com/gin-contrib/sse; MIT
github.com/gin-gonic/gin; MIT
github.com/go-gorp/gorp; MIT
Expand Down
15 changes: 0 additions & 15 deletions LICENSES/go/github.com/ghodss/yaml/LICENSE

This file was deleted.

2 changes: 1 addition & 1 deletion api/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/http"
"reflect"

"github.com/ghodss/yaml"
"github.com/gin-gonic/gin"
"sigs.k8s.io/yaml"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion api/yamlrender.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package api
import (
"fmt"

"github.com/ghodss/yaml"
"github.com/gin-gonic/gin"
"github.com/markusthoemmes/goautoneg"
"sigs.k8s.io/yaml"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
"time"

"github.com/cenkalti/backoff"
"github.com/ghodss/yaml"
expbk "github.com/jpillora/backoff"
"github.com/juju/errors"
"github.com/loopfz/gadgeto/zesty"
"github.com/ovh/configstore"
"github.com/sirupsen/logrus"
"golang.org/x/sync/semaphore"
"sigs.k8s.io/yaml"

"github.com/ovh/utask"
"github.com/ovh/utask/engine/step"
Expand Down
2 changes: 1 addition & 1 deletion engine/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
"testing"
"time"

"github.com/ghodss/yaml"
"github.com/juju/errors"
"github.com/loopfz/gadgeto/zesty"
"github.com/maxatome/go-testdeep/td"
"github.com/ovh/configstore"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"sigs.k8s.io/yaml"

"github.com/ovh/utask"
"github.com/ovh/utask/api"
Expand Down
2 changes: 1 addition & 1 deletion engine/functions/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"sort"
"strings"

"github.com/ghodss/yaml"
"github.com/ovh/utask/engine/step/condition"
"github.com/ovh/utask/engine/step/executor"
"github.com/ovh/utask/engine/values"
"github.com/sirupsen/logrus"
"github.com/tidwall/gjson"
"sigs.k8s.io/yaml"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion engine/step/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package executor
import (
"encoding/json"

"github.com/ghodss/yaml"
"sigs.k8s.io/yaml"
)

// Executor matches an executor type with its required configuration
Expand Down
2 changes: 1 addition & 1 deletion engine/values/values_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"strings"
"testing"

"github.com/ghodss/yaml"
"github.com/maxatome/go-testdeep/td"
"github.com/ovh/utask/engine/values"
"github.com/ovh/utask/pkg/utils"
"sigs.k8s.io/yaml"
)

func TestTmpl(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion models/tasktemplate/fromdir.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"path"
"strings"

"github.com/ghodss/yaml"
"github.com/juju/errors"
"github.com/loopfz/gadgeto/zesty"
"github.com/ovh/utask/pkg/templateimport"
"github.com/sirupsen/logrus"
"sigs.k8s.io/yaml"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion models/tasktemplate/fromdir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"path"
"testing"

"github.com/ghodss/yaml"
"github.com/loopfz/gadgeto/zesty"
"github.com/ovh/configstore"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"sigs.k8s.io/yaml"

"github.com/ovh/utask"
"github.com/ovh/utask/db"
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugins/builtin/echo/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package echo
import (
"fmt"

"github.com/ghodss/yaml"
"github.com/juju/errors"
"github.com/ovh/utask/pkg/plugins/taskplugin"
"github.com/ovh/utask/pkg/utils"
"sigs.k8s.io/yaml"
)

// the echo plugin is used to "manually" build result outputs
Expand Down

0 comments on commit a9c343e

Please sign in to comment.