Skip to content

Commit

Permalink
Merge pull request #791 from arithx/bump_go_mod_vers
Browse files Browse the repository at this point in the history
*: bump import path
  • Loading branch information
arithx authored Apr 10, 2019
2 parents 4f1a372 + bb6182a commit 32c77e3
Show file tree
Hide file tree
Showing 162 changed files with 467 additions and 467 deletions.
4 changes: 2 additions & 2 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export GO111MODULE=on

NAME="ignition"
ORG_PATH="github.com/coreos"
REPO_PATH="${ORG_PATH}/${NAME}"
REPO_PATH="${ORG_PATH}/${NAME}/v2"
GLDFLAGS=${GLDFLAGS:-}
GOFLAGS=-mod=vendor

Expand All @@ -15,7 +15,7 @@ if [ -z ${VERSION+a} ]; then
VERSION=$(git describe --dirty)
fi

GLDFLAGS+="-X github.com/coreos/ignition/internal/version.Raw=${VERSION}"
GLDFLAGS+="-X github.com/coreos/ignition/v2/internal/version.Raw=${VERSION}"

eval $(go env)

Expand Down
6 changes: 3 additions & 3 deletions build_blackbox_tests
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ set -eu
# tests will be run and where the stubs will be located, rely on the bb test caller setting up
# their PATH to include them. We don't need to include `id` because it gets copied into the
# system
GLDFLAGS="-X github.com/coreos/ignition/internal/distro.useraddCmd=useradd-stub "
GLDFLAGS+="-X github.com/coreos/ignition/internal/distro.usermodCmd=usermod-stub "
GLDFLAGS+="-X github.com/coreos/ignition/internal/distro.blackboxTesting=true "
GLDFLAGS="-X github.com/coreos/ignition/v2/internal/distro.useraddCmd=useradd-stub "
GLDFLAGS+="-X github.com/coreos/ignition/v2/internal/distro.usermodCmd=usermod-stub "
GLDFLAGS+="-X github.com/coreos/ignition/v2/internal/distro.blackboxTesting=true "

. build

Expand Down
2 changes: 1 addition & 1 deletion build_releases
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ -z ${VERSION+a} ]; then
VERSION=$(git describe --dirty)
fi

GLDFLAGS+="-X github.com/coreos/ignition/internal/version.Raw=${VERSION}"
GLDFLAGS+="-X github.com/coreos/ignition/v2/internal/version.Raw=${VERSION}"

if [[ -n "$(git status -s)" ]]; then
echo "git repo not clean"
Expand Down
16 changes: 8 additions & 8 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
package config

import (
"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/util"
"github.com/coreos/ignition/config/v3_0"
types_3_0 "github.com/coreos/ignition/config/v3_0/types"
"github.com/coreos/ignition/config/v3_1_experimental"
trans_exp "github.com/coreos/ignition/config/v3_1_experimental/translate"
types_exp "github.com/coreos/ignition/config/v3_1_experimental/types"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/util"
"github.com/coreos/ignition/v2/config/v3_0"
types_3_0 "github.com/coreos/ignition/v2/config/v3_0/types"
"github.com/coreos/ignition/v2/config/v3_1_experimental"
trans_exp "github.com/coreos/ignition/v2/config/v3_1_experimental/translate"
types_exp "github.com/coreos/ignition/v2/config/v3_1_experimental/types"
"github.com/coreos/ignition/v2/config/validate/report"

"github.com/coreos/go-semver/semver"
)
Expand Down
4 changes: 2 additions & 2 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"reflect"
"testing"

"github.com/coreos/ignition/config/util"
v3_0 "github.com/coreos/ignition/config/v3_0/types"
"github.com/coreos/ignition/v2/config/util"
v3_0 "github.com/coreos/ignition/v2/config/v3_0/types"
)

func testConfigType(t reflect.Type) error {
Expand Down
2 changes: 1 addition & 1 deletion config/merge/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package merge
import (
"reflect"

"github.com/coreos/ignition/config/util"
"github.com/coreos/ignition/v2/config/util"
)

// Rules of Config Merging:
Expand Down
4 changes: 2 additions & 2 deletions config/merge/merge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"reflect"
"testing"

"github.com/coreos/ignition/config/util"
"github.com/coreos/ignition/config/v3_0/types"
"github.com/coreos/ignition/v2/config/util"
"github.com/coreos/ignition/v2/config/v3_0/types"

"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions config/shared/validations/unit.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ package validations

import (
"github.com/coreos/go-systemd/unit"
"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/validate/report"
)

// ValidateInstallSection is a helper to validate a given unit
Expand Down
2 changes: 1 addition & 1 deletion config/translate/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"reflect"

"github.com/coreos/ignition/config/util"
"github.com/coreos/ignition/v2/config/util"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions config/translate/translate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/coreos/ignition/config/translate/tests/pkga"
"github.com/coreos/ignition/config/translate/tests/pkgb"
"github.com/coreos/ignition/v2/config/translate/tests/pkga"
"github.com/coreos/ignition/v2/config/translate/tests/pkgb"
)

// Note: we need different input and output types which unfortunately means a lot of tests
Expand Down
6 changes: 3 additions & 3 deletions config/util/parsingErrors.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
package util

import (
"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/config/validate/util"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/validate/report"
"github.com/coreos/ignition/v2/config/validate/util"

json "github.com/ajeddeloh/go-json"
)
Expand Down
12 changes: 6 additions & 6 deletions config/v3_0/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ package v3_0
import (
"reflect"

"github.com/coreos/ignition/config/merge"
"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/util"
"github.com/coreos/ignition/config/v3_0/types"
"github.com/coreos/ignition/config/validate"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/merge"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/util"
"github.com/coreos/ignition/v2/config/v3_0/types"
"github.com/coreos/ignition/v2/config/validate"
"github.com/coreos/ignition/v2/config/validate/report"

"github.com/coreos/go-semver/semver"
)
Expand Down
4 changes: 2 additions & 2 deletions config/v3_0/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package v3_0
import (
"testing"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/v3_0/types"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/v3_0/types"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion config/v3_0/types/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package types

import (
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/validate/report"
)

func (c CaReference) Key() string {
Expand Down
2 changes: 1 addition & 1 deletion config/v3_0/types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package types
import (
"github.com/coreos/go-semver/semver"

"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/validate/report"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions config/v3_0/types/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
package types

import (
"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/validate/report"
)

func (d Directory) ValidateMode() (r report.Report) {
Expand Down
4 changes: 2 additions & 2 deletions config/v3_0/types/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
package types

import (
"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/validate/report"
)

func (d Disk) Key() string {
Expand Down
4 changes: 2 additions & 2 deletions config/v3_0/types/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package types
import (
"fmt"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/validate/report"
)

func (f File) ValidateMode() (r report.Report) {
Expand Down
6 changes: 3 additions & 3 deletions config/v3_0/types/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"reflect"
"testing"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/util"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/util"
"github.com/coreos/ignition/v2/config/validate/report"
)

func TestFileValidateOverwrite(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/v3_0/types/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
package types

import (
"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/validate/report"
)

func (f Filesystem) Key() string {
Expand Down
6 changes: 3 additions & 3 deletions config/v3_0/types/filesystem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"reflect"
"testing"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/util"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/util"
"github.com/coreos/ignition/v2/config/validate/report"
)

func TestFilesystemValidateFormat(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/v3_0/types/ignition.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package types
import (
"github.com/coreos/go-semver/semver"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/validate/report"
)

func (c ConfigReference) Key() string {
Expand Down
2 changes: 1 addition & 1 deletion config/v3_0/types/mode.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package types

import (
"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/v2/config/shared/errors"
)

func validateMode(m *int) error {
Expand Down
4 changes: 2 additions & 2 deletions config/v3_0/types/mode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"reflect"
"testing"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/util"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/util"
)

func TestModeValidate(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/v3_0/types/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package types
import (
"path/filepath"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/validate/report"
)

func (n Node) Key() string {
Expand Down
6 changes: 3 additions & 3 deletions config/v3_0/types/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"reflect"
"testing"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/util"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/util"
"github.com/coreos/ignition/v2/config/validate/report"
)

func TestNodeValidatePath(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/v3_0/types/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"regexp"
"strings"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/validate/report"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions config/v3_0/types/partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"reflect"
"testing"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/util"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/util"
"github.com/coreos/ignition/v2/config/validate/report"
)

func TestValidateLabel(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion config/v3_0/types/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package types
import (
"path"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/v2/config/shared/errors"
)

func validatePath(p string) error {
Expand Down
2 changes: 1 addition & 1 deletion config/v3_0/types/path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"reflect"
"testing"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/v2/config/shared/errors"
)

func TestPathValidate(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions config/v3_0/types/raid.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
package types

import (
"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/validate/report"
)

func (r Raid) Key() string {
Expand Down
4 changes: 2 additions & 2 deletions config/v3_0/types/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package types
import (
"strings"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/validate/report"
)

func (s Storage) MergedKeys() map[string]string {
Expand Down
4 changes: 2 additions & 2 deletions config/v3_0/types/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"reflect"
"testing"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/validate/report"
)

func TestStorageValidate(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions config/v3_0/types/unit.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (

"github.com/coreos/go-systemd/unit"

"github.com/coreos/ignition/config/shared/errors"
"github.com/coreos/ignition/config/shared/validations"
"github.com/coreos/ignition/config/validate/report"
"github.com/coreos/ignition/v2/config/shared/errors"
"github.com/coreos/ignition/v2/config/shared/validations"
"github.com/coreos/ignition/v2/config/validate/report"
)

func (u Unit) Key() string {
Expand Down
Loading

0 comments on commit 32c77e3

Please sign in to comment.