Skip to content

Commit

Permalink
Adds version to import package paths and use Go Modules (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwhelpton authored and aeneasr committed Oct 5, 2019
1 parent 0373d2b commit fa707f0
Show file tree
Hide file tree
Showing 146 changed files with 196 additions and 199 deletions.
8 changes: 4 additions & 4 deletions docker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import (
"sync/atomic"
"time"

"github.com/ory/dockertest/docker/opts"
"github.com/ory/dockertest/docker/pkg/homedir"
"github.com/ory/dockertest/docker/pkg/jsonmessage"
"github.com/ory/dockertest/docker/pkg/stdcopy"
"github.com/ory/dockertest/v3/docker/opts"
"github.com/ory/dockertest/v3/docker/pkg/homedir"
"github.com/ory/dockertest/v3/docker/pkg/jsonmessage"
"github.com/ory/dockertest/v3/docker/pkg/stdcopy"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion docker/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package docker
import (
"encoding/json"

"github.com/ory/dockertest/docker/types/registry"
"github.com/ory/dockertest/v3/docker/types/registry"
)

// InspectDistribution returns image digest and platform information by contacting the registry
Expand Down
2 changes: 1 addition & 1 deletion docker/opts/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/ory/dockertest/docker/types"
"github.com/ory/dockertest/v3/docker/types"
)

// RuntimeOpt defines a map of Runtimes
Expand Down
12 changes: 6 additions & 6 deletions docker/pkg/archive/archive.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"archive/tar"
Expand All @@ -18,11 +18,11 @@ import (
"strings"
"syscall"

"github.com/ory/dockertest/docker/pkg/fileutils"
"github.com/ory/dockertest/docker/pkg/idtools"
"github.com/ory/dockertest/docker/pkg/ioutils"
"github.com/ory/dockertest/docker/pkg/pools"
"github.com/ory/dockertest/docker/pkg/system"
"github.com/ory/dockertest/v3/docker/pkg/fileutils"
"github.com/ory/dockertest/v3/docker/pkg/idtools"
"github.com/ory/dockertest/v3/docker/pkg/ioutils"
"github.com/ory/dockertest/v3/docker/pkg/pools"
"github.com/ory/dockertest/v3/docker/pkg/system"
"github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions docker/pkg/archive/archive_linux.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"archive/tar"
"os"
"path/filepath"
"strings"

"github.com/ory/dockertest/docker/pkg/system"
"github.com/ory/dockertest/v3/docker/pkg/system"
"golang.org/x/sys/unix"
)

Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/archive/archive_other.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !linux

package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

func getWhiteoutConverter(format WhiteoutFormat) tarWhiteoutConverter {
return nil
Expand Down
6 changes: 3 additions & 3 deletions docker/pkg/archive/archive_unix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !windows

package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"archive/tar"
Expand All @@ -11,8 +11,8 @@ import (
"path/filepath"
"syscall"

"github.com/ory/dockertest/docker/pkg/idtools"
"github.com/ory/dockertest/docker/pkg/system"
"github.com/ory/dockertest/v3/docker/pkg/idtools"
"github.com/ory/dockertest/v3/docker/pkg/system"
"golang.org/x/sys/unix"
)

Expand Down
6 changes: 3 additions & 3 deletions docker/pkg/archive/archive_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"archive/tar"
Expand All @@ -7,8 +7,8 @@ import (
"path/filepath"
"strings"

"github.com/ory/dockertest/docker/pkg/idtools"
"github.com/ory/dockertest/docker/pkg/longpath"
"github.com/ory/dockertest/v3/docker/pkg/idtools"
"github.com/ory/dockertest/v3/docker/pkg/longpath"
)

// fixVolumePathPrefix does platform specific processing to ensure that if
Expand Down
8 changes: 4 additions & 4 deletions docker/pkg/archive/changes.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"archive/tar"
Expand All @@ -13,9 +13,9 @@ import (
"syscall"
"time"

"github.com/ory/dockertest/docker/pkg/idtools"
"github.com/ory/dockertest/docker/pkg/pools"
"github.com/ory/dockertest/docker/pkg/system"
"github.com/ory/dockertest/v3/docker/pkg/idtools"
"github.com/ory/dockertest/v3/docker/pkg/pools"
"github.com/ory/dockertest/v3/docker/pkg/system"
"github.com/sirupsen/logrus"
)

Expand Down
4 changes: 2 additions & 2 deletions docker/pkg/archive/changes_linux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"bytes"
Expand All @@ -9,7 +9,7 @@ import (
"syscall"
"unsafe"

"github.com/ory/dockertest/docker/pkg/system"
"github.com/ory/dockertest/v3/docker/pkg/system"
"golang.org/x/sys/unix"
)

Expand Down
4 changes: 2 additions & 2 deletions docker/pkg/archive/changes_other.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !linux

package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"fmt"
Expand All @@ -9,7 +9,7 @@ import (
"runtime"
"strings"

"github.com/ory/dockertest/docker/pkg/system"
"github.com/ory/dockertest/v3/docker/pkg/system"
)

func collectFileInfoForChanges(oldDir, newDir string) (*FileInfo, *FileInfo, error) {
Expand Down
4 changes: 2 additions & 2 deletions docker/pkg/archive/changes_unix.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// +build !windows

package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"os"
"syscall"

"github.com/ory/dockertest/docker/pkg/system"
"github.com/ory/dockertest/v3/docker/pkg/system"
"golang.org/x/sys/unix"
)

Expand Down
4 changes: 2 additions & 2 deletions docker/pkg/archive/changes_windows.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"os"

"github.com/ory/dockertest/docker/pkg/system"
"github.com/ory/dockertest/v3/docker/pkg/system"
)

func statDifferent(oldStat *system.StatT, newStat *system.StatT) bool {
Expand Down
4 changes: 2 additions & 2 deletions docker/pkg/archive/copy.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"archive/tar"
Expand All @@ -9,7 +9,7 @@ import (
"path/filepath"
"strings"

"github.com/ory/dockertest/docker/pkg/system"
"github.com/ory/dockertest/v3/docker/pkg/system"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/archive/copy_unix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !windows

package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"path/filepath"
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/archive/copy_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"path/filepath"
Expand Down
8 changes: 4 additions & 4 deletions docker/pkg/archive/diff.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"archive/tar"
Expand All @@ -10,9 +10,9 @@ import (
"runtime"
"strings"

"github.com/ory/dockertest/docker/pkg/idtools"
"github.com/ory/dockertest/docker/pkg/pools"
"github.com/ory/dockertest/docker/pkg/system"
"github.com/ory/dockertest/v3/docker/pkg/idtools"
"github.com/ory/dockertest/v3/docker/pkg/pools"
"github.com/ory/dockertest/v3/docker/pkg/system"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/archive/example_changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"os"
"path"

"github.com/ory/dockertest/docker/pkg/archive"
"github.com/ory/dockertest/v3/docker/pkg/archive"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/archive/time_linux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"syscall"
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/archive/time_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !linux

package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"syscall"
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/archive/whiteouts.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

// Whiteouts are files with a special meaning for the layered filesystem.
// Docker uses AUFS whiteout files inside exported archives. In other
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/archive/wrap.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package archive // import "github.com/ory/dockertest/docker/pkg/archive"
package archive // import "github.com/ory/dockertest/v3/docker/pkg/archive"

import (
"archive/tar"
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/fileutils/fileutils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fileutils // import "github.com/ory/dockertest/docker/pkg/fileutils"
package fileutils // import "github.com/ory/dockertest/v3/docker/pkg/fileutils"

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/fileutils/fileutils_darwin.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fileutils // import "github.com/ory/dockertest/docker/pkg/fileutils"
package fileutils // import "github.com/ory/dockertest/v3/docker/pkg/fileutils"

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/fileutils/fileutils_unix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build linux freebsd

package fileutils // import "github.com/ory/dockertest/docker/pkg/fileutils"
package fileutils // import "github.com/ory/dockertest/v3/docker/pkg/fileutils"

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/fileutils/fileutils_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package fileutils // import "github.com/ory/dockertest/docker/pkg/fileutils"
package fileutils // import "github.com/ory/dockertest/v3/docker/pkg/fileutils"

// GetTotalUsedFds Returns the number of used File Descriptors. Not supported
// on Windows.
Expand Down
4 changes: 2 additions & 2 deletions docker/pkg/homedir/homedir_linux.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package homedir // import "github.com/ory/dockertest/docker/pkg/homedir"
package homedir // import "github.com/ory/dockertest/v3/docker/pkg/homedir"

import (
"os"

"github.com/ory/dockertest/docker/pkg/idtools"
"github.com/ory/dockertest/v3/docker/pkg/idtools"
)

// GetStatic returns the home directory for the current user without calling
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/homedir/homedir_others.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !linux

package homedir // import "github.com/ory/dockertest/docker/pkg/homedir"
package homedir // import "github.com/ory/dockertest/v3/docker/pkg/homedir"

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/homedir/homedir_unix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !windows

package homedir // import "github.com/ory/dockertest/docker/pkg/homedir"
package homedir // import "github.com/ory/dockertest/v3/docker/pkg/homedir"

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/homedir/homedir_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package homedir // import "github.com/ory/dockertest/docker/pkg/homedir"
package homedir // import "github.com/ory/dockertest/v3/docker/pkg/homedir"

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/idtools/idtools.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package idtools // import "github.com/ory/dockertest/docker/pkg/idtools"
package idtools // import "github.com/ory/dockertest/v3/docker/pkg/idtools"

import (
"bufio"
Expand Down
4 changes: 2 additions & 2 deletions docker/pkg/idtools/idtools_unix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !windows

package idtools // import "github.com/ory/dockertest/docker/pkg/idtools"
package idtools // import "github.com/ory/dockertest/v3/docker/pkg/idtools"

import (
"bytes"
Expand All @@ -12,7 +12,7 @@ import (
"sync"
"syscall"

"github.com/ory/dockertest/docker/pkg/system"
"github.com/ory/dockertest/v3/docker/pkg/system"
"github.com/opencontainers/runc/libcontainer/user"
)

Expand Down
4 changes: 2 additions & 2 deletions docker/pkg/idtools/idtools_windows.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package idtools // import "github.com/ory/dockertest/docker/pkg/idtools"
package idtools // import "github.com/ory/dockertest/v3/docker/pkg/idtools"

import (
"os"

"github.com/ory/dockertest/docker/pkg/system"
"github.com/ory/dockertest/v3/docker/pkg/system"
)

// Platforms such as Windows do not support the UID/GID concept. So make this
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/idtools/usergroupadd_linux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package idtools // import "github.com/ory/dockertest/docker/pkg/idtools"
package idtools // import "github.com/ory/dockertest/v3/docker/pkg/idtools"

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/idtools/usergroupadd_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !linux

package idtools // import "github.com/ory/dockertest/docker/pkg/idtools"
package idtools // import "github.com/ory/dockertest/v3/docker/pkg/idtools"

import "fmt"

Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/idtools/utils_unix.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !windows

package idtools // import "github.com/ory/dockertest/docker/pkg/idtools"
package idtools // import "github.com/ory/dockertest/v3/docker/pkg/idtools"

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion docker/pkg/ioutils/buffer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ioutils // import "github.com/ory/dockertest/docker/pkg/ioutils"
package ioutils // import "github.com/ory/dockertest/v3/docker/pkg/ioutils"

import (
"errors"
Expand Down
Loading

0 comments on commit fa707f0

Please sign in to comment.