Repository: containers/image
Pull request #735 (2019-10-25 20:45:37)

Release v5.0.0
In addition to the minimal bump, this also includes a commit that beautifies imports a bit.


Patch:
diff --git a/copy/copy.go b/copy/copy.go
index a2941e2a..090d862d 100644
--- a/copy/copy.go
+++ b/copy/copy.go
@@ -13,14 +13,14 @@ import (
 	"sync"
 	"time"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/image"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/pkg/blobinfocache"
-	"github.com/containers/image/v4/pkg/compression"
-	"github.com/containers/image/v4/signature"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/image"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/pkg/blobinfocache"
+	"github.com/containers/image/v5/pkg/compression"
+	"github.com/containers/image/v5/signature"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	digest "github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/pkg/errors"
diff --git a/copy/manifest.go b/copy/manifest.go
index bbee08f5..f5f6c9c5 100644
--- a/copy/manifest.go
+++ b/copy/manifest.go
@@ -4,8 +4,8 @@ import (
 	"context"
 	"strings"
 
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
 )
diff --git a/copy/progress_reader.go b/copy/progress_reader.go
index c6a1e3da..1d0c41bc 100644
--- a/copy/progress_reader.go
+++ b/copy/progress_reader.go
@@ -4,7 +4,7 @@ import (
 	"io"
 	"time"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 )
 
 // progressReader is a reader that reports its progress on an interval.
diff --git a/copy/sign.go b/copy/sign.go
index 64c3b4b2..8f46e9de 100644
--- a/copy/sign.go
+++ b/copy/sign.go
@@ -1,8 +1,8 @@
 package copy
 
 import (
-	"github.com/containers/image/v4/signature"
-	"github.com/containers/image/v4/transports"
+	"github.com/containers/image/v5/signature"
+	"github.com/containers/image/v5/transports"
 	"github.com/pkg/errors"
 )
 
diff --git a/directory/directory_dest.go b/directory/directory_dest.go
index c23d1ce1..2d6650de 100644
--- a/directory/directory_dest.go
+++ b/directory/directory_dest.go
@@ -7,7 +7,7 @@ import (
 	"os"
 	"path/filepath"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
diff --git a/directory/directory_src.go b/directory/directory_src.go
index d97b68d9..ad9129d4 100644
--- a/directory/directory_src.go
+++ b/directory/directory_src.go
@@ -6,8 +6,8 @@ import (
 	"io/ioutil"
 	"os"
 
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 )
 
diff --git a/directory/directory_transport.go b/directory/directory_transport.go
index 1229e5a9..adfec6ef 100644
--- a/directory/directory_transport.go
+++ b/directory/directory_transport.go
@@ -6,11 +6,11 @@ import (
 	"path/filepath"
 	"strings"
 
-	"github.com/containers/image/v4/directory/explicitfilepath"
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/image"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/directory/explicitfilepath"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/image"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
 )
diff --git a/doc.go b/doc.go
index ba0a2149..367f25c7 100644
--- a/doc.go
+++ b/doc.go
@@ -6,7 +6,7 @@
 //   	"context"
 //  	"fmt"
 //
-//  	"github.com/containers/image/v4/docker"
+//  	"github.com/containers/image/v5/docker"
 //  )
 //
 //  func main() {
diff --git a/docker/archive/dest.go b/docker/archive/dest.go
index 1126ed27..5845f63b 100644
--- a/docker/archive/dest.go
+++ b/docker/archive/dest.go
@@ -5,8 +5,8 @@ import (
 	"io"
 	"os"
 
-	"github.com/containers/image/v4/docker/tarfile"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/tarfile"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 )
 
diff --git a/docker/archive/src.go b/docker/archive/src.go
index 749d6217..a9070743 100644
--- a/docker/archive/src.go
+++ b/docker/archive/src.go
@@ -2,8 +2,8 @@ package archive
 
 import (
 	"context"
-	"github.com/containers/image/v4/docker/tarfile"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/tarfile"
+	"github.com/containers/image/v5/types"
 	"github.com/sirupsen/logrus"
 )
 
diff --git a/docker/archive/transport.go b/docker/archive/transport.go
index 347fdbd6..44213bb8 100644
--- a/docker/archive/transport.go
+++ b/docker/archive/transport.go
@@ -5,10 +5,10 @@ import (
 	"fmt"
 	"strings"
 
-	"github.com/containers/image/v4/docker/reference"
-	ctrImage "github.com/containers/image/v4/image"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	ctrImage "github.com/containers/image/v5/image"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 )
 
diff --git a/docker/cache.go b/docker/cache.go
index 51bf5b0d..728d32d1 100644
--- a/docker/cache.go
+++ b/docker/cache.go
@@ -1,8 +1,8 @@
 package docker
 
 import (
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/types"
 )
 
 // bicTransportScope returns a BICTransportScope appropriate for ref.
diff --git a/docker/daemon/client.go b/docker/daemon/client.go
index 94c4970f..323a02fc 100644
--- a/docker/daemon/client.go
+++ b/docker/daemon/client.go
@@ -4,7 +4,7 @@ import (
 	"net/http"
 	"path/filepath"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	dockerclient "github.com/docker/docker/client"
 	"github.com/docker/go-connections/tlsconfig"
 )
diff --git a/docker/daemon/daemon_dest.go b/docker/daemon/daemon_dest.go
index 7738e9ae..25ce55a1 100644
--- a/docker/daemon/daemon_dest.go
+++ b/docker/daemon/daemon_dest.go
@@ -4,9 +4,9 @@ import (
 	"context"
 	"io"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/docker/tarfile"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/docker/tarfile"
+	"github.com/containers/image/v5/types"
 	"github.com/docker/docker/client"
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
diff --git a/docker/daemon/daemon_src.go b/docker/daemon/daemon_src.go
index e1a01fd7..46fbcc4e 100644
--- a/docker/daemon/daemon_src.go
+++ b/docker/daemon/daemon_src.go
@@ -3,8 +3,8 @@ package daemon
 import (
 	"context"
 
-	"github.com/containers/image/v4/docker/tarfile"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/tarfile"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 )
 
diff --git a/docker/daemon/daemon_transport.go b/docker/daemon/daemon_transport.go
index 4c6986ba..4e4ed688 100644
--- a/docker/daemon/daemon_transport.go
+++ b/docker/daemon/daemon_transport.go
@@ -4,11 +4,11 @@ import (
 	"context"
 	"fmt"
 
-	"github.com/containers/image/v4/docker/policyconfiguration"
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/image"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/policyconfiguration"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/image"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
 )
diff --git a/docker/docker_client.go b/docker/docker_client.go
index a7c626f2..0b012c70 100644
--- a/docker/docker_client.go
+++ b/docker/docker_client.go
@@ -16,11 +16,11 @@ import (
 	"sync"
 	"time"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/pkg/docker/config"
-	"github.com/containers/image/v4/pkg/sysregistriesv2"
-	"github.com/containers/image/v4/pkg/tlsclientconfig"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/pkg/docker/config"
+	"github.com/containers/image/v5/pkg/sysregistriesv2"
+	"github.com/containers/image/v5/pkg/tlsclientconfig"
+	"github.com/containers/image/v5/types"
 	clientLib "github.com/docker/distribution/registry/client"
 	"github.com/docker/go-connections/tlsconfig"
 	digest "github.com/opencontainers/go-digest"
diff --git a/docker/docker_image.go b/docker/docker_image.go
index b3514f12..dad382cd 100644
--- a/docker/docker_image.go
+++ b/docker/docker_image.go
@@ -7,9 +7,9 @@ import (
 	"net/url"
 	"strings"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/image"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/image"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 )
 
diff --git a/docker/docker_image_dest.go b/docker/docker_image_dest.go
index 6843b3fa..417d97ae 100644
--- a/docker/docker_image_dest.go
+++ b/docker/docker_image_dest.go
@@ -14,10 +14,10 @@ import (
 	"path/filepath"
 	"strings"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/pkg/blobinfocache/none"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/pkg/blobinfocache/none"
+	"github.com/containers/image/v5/types"
 	"github.com/docker/distribution/registry/api/errcode"
 	v2 "github.com/docker/distribution/registry/api/v2"
 	"github.com/docker/distribution/registry/client"
diff --git a/docker/docker_image_src.go b/docker/docker_image_src.go
index b6d96429..35beb30e 100644
--- a/docker/docker_image_src.go
+++ b/docker/docker_image_src.go
@@ -11,10 +11,10 @@ import (
 	"os"
 	"strconv"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/pkg/sysregistriesv2"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/pkg/sysregistriesv2"
+	"github.com/containers/image/v5/types"
 	"github.com/docker/distribution/registry/client"
 	digest "github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
diff --git a/docker/docker_transport.go b/docker/docker_transport.go
index c9ce75e0..8b8e5796 100644
--- a/docker/docker_transport.go
+++ b/docker/docker_transport.go
@@ -5,10 +5,10 @@ import (
 	"fmt"
 	"strings"
 
-	"github.com/containers/image/v4/docker/policyconfiguration"
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/policyconfiguration"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 )
 
diff --git a/docker/lookaside.go b/docker/lookaside.go
index c43160f7..918c0f83 100644
--- a/docker/lookaside.go
+++ b/docker/lookaside.go
@@ -9,8 +9,8 @@ import (
 	"path/filepath"
 	"strings"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/types"
 	"github.com/ghodss/yaml"
 	"github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
diff --git a/docker/policyconfiguration/naming.go b/docker/policyconfiguration/naming.go
index e2ed631c..61d9aab9 100644
--- a/docker/policyconfiguration/naming.go
+++ b/docker/policyconfiguration/naming.go
@@ -3,7 +3,7 @@ package policyconfiguration
 import (
 	"strings"
 
-	"github.com/containers/image/v4/docker/reference"
+	"github.com/containers/image/v5/docker/reference"
 	"github.com/pkg/errors"
 )
 
diff --git a/docker/tarfile/dest.go b/docker/tarfile/dest.go
index eb10ed78..b02c60bb 100644
--- a/docker/tarfile/dest.go
+++ b/docker/tarfile/dest.go
@@ -12,10 +12,10 @@ import (
 	"path/filepath"
 	"time"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/internal/tmpdir"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/internal/tmpdir"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
diff --git a/docker/tarfile/src.go b/docker/tarfile/src.go
index b84afd6a..ad0a3d2c 100644
--- a/docker/tarfile/src.go
+++ b/docker/tarfile/src.go
@@ -11,10 +11,10 @@ import (
 	"path"
 	"sync"
 
-	"github.com/containers/image/v4/internal/tmpdir"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/pkg/compression"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/internal/tmpdir"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/pkg/compression"
+	"github.com/containers/image/v5/types"
 	digest "github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
 )
diff --git a/docker/tarfile/types.go b/docker/tarfile/types.go
index c630f522..ac222528 100644
--- a/docker/tarfile/types.go
+++ b/docker/tarfile/types.go
@@ -1,7 +1,7 @@
 package tarfile
 
 import (
-	"github.com/containers/image/v4/manifest"
+	"github.com/containers/image/v5/manifest"
 	"github.com/opencontainers/go-digest"
 )
 
diff --git a/go.mod b/go.mod
index 8260a9b5..44caa165 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/containers/image/v4
+module github.com/containers/image/v5
 
 go 1.11
 
diff --git a/image/docker_list.go b/image/docker_list.go
index 7e224898..651c301a 100644
--- a/image/docker_list.go
+++ b/image/docker_list.go
@@ -3,8 +3,8 @@ package image
 import (
 	"context"
 
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 )
 
diff --git a/image/docker_schema1.go b/image/docker_schema1.go
index 97ebeac0..1a1c39d5 100644
--- a/image/docker_schema1.go
+++ b/image/docker_schema1.go
@@ -3,9 +3,9 @@ package image
 import (
 	"context"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/pkg/errors"
diff --git a/image/docker_schema2.go b/image/docker_schema2.go
index 9841bbd4..254c13f7 100644
--- a/image/docker_schema2.go
+++ b/image/docker_schema2.go
@@ -10,10 +10,10 @@ import (
 	"io/ioutil"
 	"strings"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/pkg/blobinfocache/none"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/pkg/blobinfocache/none"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/pkg/errors"
diff --git a/image/manifest.go b/image/manifest.go
index fa5fd6f4..fe66da15 100644
--- a/image/manifest.go
+++ b/image/manifest.go
@@ -4,9 +4,9 @@ import (
 	"context"
 	"fmt"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 )
 
diff --git a/image/memory.go b/image/memory.go
index 255965e1..4c96b37d 100644
--- a/image/memory.go
+++ b/image/memory.go
@@ -3,9 +3,8 @@ package image
 import (
 	"context"
 
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
-
-	"github.com/containers/image/v4/types"
 )
 
 // memoryImage is a mostly-implementation of types.Image assembled from data
diff --git a/image/oci.go b/image/oci.go
index 142b0f28..18a38d46 100644
--- a/image/oci.go
+++ b/image/oci.go
@@ -6,10 +6,10 @@ import (
 	"fmt"
 	"io/ioutil"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/pkg/blobinfocache/none"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/pkg/blobinfocache/none"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/pkg/errors"
diff --git a/image/oci_index.go b/image/oci_index.go
index 32a3b750..022e03ac 100644
--- a/image/oci_index.go
+++ b/image/oci_index.go
@@ -3,8 +3,8 @@ package image
 import (
 	"context"
 
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 )
 
diff --git a/image/sourced.go b/image/sourced.go
index 6d59b6df..3a016e1d 100644
--- a/image/sourced.go
+++ b/image/sourced.go
@@ -6,7 +6,7 @@ package image
 import (
 	"context"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 )
 
 // imageCloser implements types.ImageCloser, perhaps allowing simple users
diff --git a/image/unparsed.go b/image/unparsed.go
index d7310765..4e3028d8 100644
--- a/image/unparsed.go
+++ b/image/unparsed.go
@@ -3,9 +3,9 @@ package image
 import (
 	"context"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
 )
diff --git a/manifest/docker_schema1.go b/manifest/docker_schema1.go
index 3c172504..58527d71 100644
--- a/manifest/docker_schema1.go
+++ b/manifest/docker_schema1.go
@@ -6,8 +6,8 @@ import (
 	"strings"
 	"time"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/types"
 	"github.com/docker/docker/api/types/versions"
 	"github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
diff --git a/manifest/docker_schema2.go b/manifest/docker_schema2.go
index 84b189c8..d768d6e1 100644
--- a/manifest/docker_schema2.go
+++ b/manifest/docker_schema2.go
@@ -5,9 +5,9 @@ import (
 	"fmt"
 	"time"
 
-	"github.com/containers/image/v4/pkg/compression"
-	"github.com/containers/image/v4/pkg/strslice"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/pkg/compression"
+	"github.com/containers/image/v5/pkg/strslice"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
diff --git a/manifest/docker_schema2_list.go b/manifest/docker_schema2_list.go
index 4b41bc45..453976c4 100644
--- a/manifest/docker_schema2_list.go
+++ b/manifest/docker_schema2_list.go
@@ -5,7 +5,7 @@ import (
 	"fmt"
 	"runtime"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/pkg/errors"
diff --git a/manifest/list.go b/manifest/list.go
index 2db55846..6d10430f 100644
--- a/manifest/list.go
+++ b/manifest/list.go
@@ -3,7 +3,7 @@ package manifest
 import (
 	"fmt"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	digest "github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 )
diff --git a/manifest/manifest.go b/manifest/manifest.go
index 2daf1b80..5b4d341d 100644
--- a/manifest/manifest.go
+++ b/manifest/manifest.go
@@ -4,7 +4,7 @@ import (
 	"encoding/json"
 	"fmt"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/containers/libtrust"
 	digest "github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
diff --git a/manifest/oci.go b/manifest/oci.go
index e483bbb1..46c551b1 100644
--- a/manifest/oci.go
+++ b/manifest/oci.go
@@ -4,8 +4,8 @@ import (
 	"encoding/json"
 	"fmt"
 
-	"github.com/containers/image/v4/pkg/compression"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/pkg/compression"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	"github.com/opencontainers/image-spec/specs-go"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
diff --git a/manifest/oci_index.go b/manifest/oci_index.go
index 4776ee88..816503ce 100644
--- a/manifest/oci_index.go
+++ b/manifest/oci_index.go
@@ -5,7 +5,7 @@ import (
 	"fmt"
 	"runtime"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	imgspec "github.com/opencontainers/image-spec/specs-go"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
diff --git a/oci/archive/oci_dest.go b/oci/archive/oci_dest.go
index 26921b8b..164d5522 100644
--- a/oci/archive/oci_dest.go
+++ b/oci/archive/oci_dest.go
@@ -5,7 +5,7 @@ import (
 	"io"
 	"os"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/containers/storage/pkg/archive"
 	digest "github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
diff --git a/oci/archive/oci_src.go b/oci/archive/oci_src.go
index e54b423e..33a41d44 100644
--- a/oci/archive/oci_src.go
+++ b/oci/archive/oci_src.go
@@ -4,8 +4,8 @@ import (
 	"context"
 	"io"
 
-	ocilayout "github.com/containers/image/v4/oci/layout"
-	"github.com/containers/image/v4/types"
+	ocilayout "github.com/containers/image/v5/oci/layout"
+	"github.com/containers/image/v5/types"
 	digest "github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/pkg/errors"
diff --git a/oci/archive/oci_transport.go b/oci/archive/oci_transport.go
index c8808ecb..2d72a6fe 100644
--- a/oci/archive/oci_transport.go
+++ b/oci/archive/oci_transport.go
@@ -7,14 +7,14 @@ import (
 	"os"
 	"strings"
 
-	"github.com/containers/image/v4/directory/explicitfilepath"
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/image"
-	"github.com/containers/image/v4/internal/tmpdir"
-	"github.com/containers/image/v4/oci/internal"
-	ocilayout "github.com/containers/image/v4/oci/layout"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/directory/explicitfilepath"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/image"
+	"github.com/containers/image/v5/internal/tmpdir"
+	"github.com/containers/image/v5/oci/internal"
+	ocilayout "github.com/containers/image/v5/oci/layout"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	"github.com/containers/storage/pkg/archive"
 	"github.com/pkg/errors"
 )
diff --git a/oci/layout/oci_dest.go b/oci/layout/oci_dest.go
index 62f5e091..370e8d2c 100644
--- a/oci/layout/oci_dest.go
+++ b/oci/layout/oci_dest.go
@@ -9,8 +9,8 @@ import (
 	"path/filepath"
 	"runtime"
 
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	digest "github.com/opencontainers/go-digest"
 	imgspec "github.com/opencontainers/image-spec/specs-go"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
diff --git a/oci/layout/oci_src.go b/oci/layout/oci_src.go
index f9977f81..f515203d 100644
--- a/oci/layout/oci_src.go
+++ b/oci/layout/oci_src.go
@@ -8,9 +8,9 @@ import (
 	"os"
 	"strconv"
 
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/pkg/tlsclientconfig"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/pkg/tlsclientconfig"
+	"github.com/containers/image/v5/types"
 	"github.com/docker/go-connections/tlsconfig"
 	"github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
diff --git a/oci/layout/oci_transport.go b/oci/layout/oci_transport.go
index 8b6be8ea..c662c9a7 100644
--- a/oci/layout/oci_transport.go
+++ b/oci/layout/oci_transport.go
@@ -8,12 +8,12 @@ import (
 	"path/filepath"
 	"strings"
 
-	"github.com/containers/image/v4/directory/explicitfilepath"
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/image"
-	"github.com/containers/image/v4/oci/internal"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/directory/explicitfilepath"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/image"
+	"github.com/containers/image/v5/oci/internal"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/pkg/errors"
diff --git a/openshift/openshift.go b/openshift/openshift.go
index 8294f70c..016de480 100644
--- a/openshift/openshift.go
+++ b/openshift/openshift.go
@@ -12,11 +12,11 @@ import (
 	"net/url"
 	"strings"
 
-	"github.com/containers/image/v4/docker"
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
-	"github.com/containers/image/v4/version"
+	"github.com/containers/image/v5/docker"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
+	"github.com/containers/image/v5/version"
 	"github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
diff --git a/openshift/openshift_transport.go b/openshift/openshift_transport.go
index f00c9456..6bbb43be 100644
--- a/openshift/openshift_transport.go
+++ b/openshift/openshift_transport.go
@@ -6,11 +6,11 @@ import (
 	"regexp"
 	"strings"
 
-	"github.com/containers/image/v4/docker/policyconfiguration"
-	"github.com/containers/image/v4/docker/reference"
-	genericImage "github.com/containers/image/v4/image"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/policyconfiguration"
+	"github.com/containers/image/v5/docker/reference"
+	genericImage "github.com/containers/image/v5/image"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 )
 
diff --git a/ostree/ostree_dest.go b/ostree/ostree_dest.go
index 09de76f9..c442b4d2 100644
--- a/ostree/ostree_dest.go
+++ b/ostree/ostree_dest.go
@@ -20,8 +20,8 @@ import (
 	"time"
 	"unsafe"
 
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/containers/storage/pkg/archive"
 	"github.com/klauspost/pgzip"
 	"github.com/opencontainers/go-digest"
diff --git a/ostree/ostree_src.go b/ostree/ostree_src.go
index 62182b1b..4948ec66 100644
--- a/ostree/ostree_src.go
+++ b/ostree/ostree_src.go
@@ -13,8 +13,8 @@ import (
 	"strings"
 	"unsafe"
 
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/containers/storage/pkg/ioutils"
 	"github.com/klauspost/pgzip"
 	digest "github.com/opencontainers/go-digest"
diff --git a/ostree/ostree_transport.go b/ostree/ostree_transport.go
index d720cb7a..a55147b8 100644
--- a/ostree/ostree_transport.go
+++ b/ostree/ostree_transport.go
@@ -11,11 +11,11 @@ import (
 	"regexp"
 	"strings"
 
-	"github.com/containers/image/v4/directory/explicitfilepath"
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/image"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/directory/explicitfilepath"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/image"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 )
 
diff --git a/pkg/blobinfocache/boltdb/boltdb.go b/pkg/blobinfocache/boltdb/boltdb.go
index 85eb7d6f..9c9a17a5 100644
--- a/pkg/blobinfocache/boltdb/boltdb.go
+++ b/pkg/blobinfocache/boltdb/boltdb.go
@@ -7,8 +7,8 @@ import (
 	"sync"
 	"time"
 
-	"github.com/containers/image/v4/pkg/blobinfocache/internal/prioritize"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/pkg/blobinfocache/internal/prioritize"
+	"github.com/containers/image/v5/types"
 	bolt "github.com/etcd-io/bbolt"
 	"github.com/opencontainers/go-digest"
 	"github.com/sirupsen/logrus"
diff --git a/pkg/blobinfocache/default.go b/pkg/blobinfocache/default.go
index af136c36..952bcf5a 100644
--- a/pkg/blobinfocache/default.go
+++ b/pkg/blobinfocache/default.go
@@ -6,9 +6,9 @@ import (
 	"path/filepath"
 	"strconv"
 
-	"github.com/containers/image/v4/pkg/blobinfocache/boltdb"
-	"github.com/containers/image/v4/pkg/blobinfocache/memory"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/pkg/blobinfocache/boltdb"
+	"github.com/containers/image/v5/pkg/blobinfocache/memory"
+	"github.com/containers/image/v5/types"
 	"github.com/sirupsen/logrus"
 )
 
diff --git a/pkg/blobinfocache/internal/prioritize/prioritize.go b/pkg/blobinfocache/internal/prioritize/prioritize.go
index 7820119b..5deca4a8 100644
--- a/pkg/blobinfocache/internal/prioritize/prioritize.go
+++ b/pkg/blobinfocache/internal/prioritize/prioritize.go
@@ -6,7 +6,7 @@ import (
 	"sort"
 	"time"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 )
 
diff --git a/pkg/blobinfocache/memory/memory.go b/pkg/blobinfocache/memory/memory.go
index c51b9f5c..8f28c662 100644
--- a/pkg/blobinfocache/memory/memory.go
+++ b/pkg/blobinfocache/memory/memory.go
@@ -5,8 +5,8 @@ import (
 	"sync"
 	"time"
 
-	"github.com/containers/image/v4/pkg/blobinfocache/internal/prioritize"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/pkg/blobinfocache/internal/prioritize"
+	"github.com/containers/image/v5/types"
 	digest "github.com/opencontainers/go-digest"
 	"github.com/sirupsen/logrus"
 )
diff --git a/pkg/blobinfocache/none/none.go b/pkg/blobinfocache/none/none.go
index c5ce29a4..fa1879af 100644
--- a/pkg/blobinfocache/none/none.go
+++ b/pkg/blobinfocache/none/none.go
@@ -2,7 +2,7 @@
 package none
 
 import (
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 )
 
diff --git a/pkg/compression/compression.go b/pkg/compression/compression.go
index fd2f2154..04d231c6 100644
--- a/pkg/compression/compression.go
+++ b/pkg/compression/compression.go
@@ -7,8 +7,8 @@ import (
 	"io"
 	"io/ioutil"
 
-	"github.com/containers/image/v4/pkg/compression/internal"
-	"github.com/containers/image/v4/pkg/compression/types"
+	"github.com/containers/image/v5/pkg/compression/internal"
+	"github.com/containers/image/v5/pkg/compression/types"
 	"github.com/klauspost/pgzip"
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
diff --git a/pkg/compression/types/types.go b/pkg/compression/types/types.go
index ea43dc8c..f96eff2e 100644
--- a/pkg/compression/types/types.go
+++ b/pkg/compression/types/types.go
@@ -1,7 +1,7 @@
 package types
 
 import (
-	"github.com/containers/image/v4/pkg/compression/internal"
+	"github.com/containers/image/v5/pkg/compression/internal"
 )
 
 // DecompressorFunc returns the decompressed stream, given a compressed stream.
diff --git a/pkg/docker/config/config.go b/pkg/docker/config/config.go
index c2a1d049..b7dddd0d 100644
--- a/pkg/docker/config/config.go
+++ b/pkg/docker/config/config.go
@@ -9,7 +9,7 @@ import (
 	"path/filepath"
 	"strings"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	helperclient "github.com/docker/docker-credential-helpers/client"
 	"github.com/docker/docker-credential-helpers/credentials"
 	"github.com/docker/docker/pkg/homedir"
diff --git a/pkg/docker/config/config_linux.go b/pkg/docker/config/config_linux.go
index 0cd73528..43f2d5a8 100644
--- a/pkg/docker/config/config_linux.go
+++ b/pkg/docker/config/config_linux.go
@@ -4,7 +4,7 @@ import (
 	"fmt"
 	"strings"
 
-	"github.com/containers/image/v4/internal/pkg/keyctl"
+	"github.com/containers/image/v5/internal/pkg/keyctl"
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
 )
diff --git a/pkg/sysregistriesv2/system_registries_v2.go b/pkg/sysregistriesv2/system_registries_v2.go
index 0cd60778..ff802cef 100644
--- a/pkg/sysregistriesv2/system_registries_v2.go
+++ b/pkg/sysregistriesv2/system_registries_v2.go
@@ -10,11 +10,10 @@ import (
 	"sync"
 
 	"github.com/BurntSushi/toml"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
-
-	"github.com/containers/image/v4/docker/reference"
 )
 
 // systemRegistriesConfPath is the path to the system-wide registry
diff --git a/signature/docker.go b/signature/docker.go
index c3ac33d4..07fdd42a 100644
--- a/signature/docker.go
+++ b/signature/docker.go
@@ -5,8 +5,8 @@ package signature
 import (
 	"fmt"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
 	"github.com/opencontainers/go-digest"
 )
 
diff --git a/signature/policy_config.go b/signature/policy_config.go
index bb229f5f..3eee70bc 100644
--- a/signature/policy_config.go
+++ b/signature/policy_config.go
@@ -19,9 +19,9 @@ import (
 	"io/ioutil"
 	"path/filepath"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 )
 
diff --git a/signature/policy_eval.go b/signature/policy_eval.go
index 110d40f7..e94de2a9 100644
--- a/signature/policy_eval.go
+++ b/signature/policy_eval.go
@@ -8,7 +8,7 @@ package signature
 import (
 	"context"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
 )
diff --git a/signature/policy_eval_baselayer.go b/signature/policy_eval_baselayer.go
index 18fb651d..55cdd305 100644
--- a/signature/policy_eval_baselayer.go
+++ b/signature/policy_eval_baselayer.go
@@ -5,7 +5,7 @@ package signature
 import (
 	"context"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/sirupsen/logrus"
 )
 
diff --git a/signature/policy_eval_signedby.go b/signature/policy_eval_signedby.go
index b8188da5..26cca475 100644
--- a/signature/policy_eval_signedby.go
+++ b/signature/policy_eval_signedby.go
@@ -8,11 +8,10 @@ import (
 	"io/ioutil"
 	"strings"
 
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
+	digest "github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
-
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
-	"github.com/opencontainers/go-digest"
 )
 
 func (pr *prSignedBy) isSignatureAuthorAccepted(ctx context.Context, image types.UnparsedImage, sig []byte) (signatureAcceptanceResult, *Signature, error) {
diff --git a/signature/policy_eval_simple.go b/signature/policy_eval_simple.go
index 7fbcf4a9..f949088b 100644
--- a/signature/policy_eval_simple.go
+++ b/signature/policy_eval_simple.go
@@ -6,8 +6,8 @@ import (
 	"context"
 	"fmt"
 
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 )
 
 func (pr *prInsecureAcceptAnything) isSignatureAuthorAccepted(ctx context.Context, image types.UnparsedImage, sig []byte) (signatureAcceptanceResult, *Signature, error) {
diff --git a/signature/policy_reference_match.go b/signature/policy_reference_match.go
index 016d737f..a148ede5 100644
--- a/signature/policy_reference_match.go
+++ b/signature/policy_reference_match.go
@@ -5,9 +5,9 @@ package signature
 import (
 	"fmt"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 )
 
 // parseImageAndDockerReference converts an image and a reference string into two parsed entities, failing on any error and handling unidentified images.
diff --git a/signature/signature.go b/signature/signature.go
index 09c4de0b..44e70b3b 100644
--- a/signature/signature.go
+++ b/signature/signature.go
@@ -9,10 +9,9 @@ import (
 	"fmt"
 	"time"
 
+	"github.com/containers/image/v5/version"
+	digest "github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
-
-	"github.com/containers/image/v4/version"
-	"github.com/opencontainers/go-digest"
 )
 
 const (
diff --git a/storage/storage_image.go b/storage/storage_image.go
index 366a9edf..2b89f329 100644
--- a/storage/storage_image.go
+++ b/storage/storage_image.go
@@ -15,12 +15,12 @@ import (
 	"sync"
 	"sync/atomic"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/image"
-	"github.com/containers/image/v4/internal/tmpdir"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/pkg/blobinfocache/none"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/image"
+	"github.com/containers/image/v5/internal/tmpdir"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/pkg/blobinfocache/none"
+	"github.com/containers/image/v5/types"
 	"github.com/containers/storage"
 	"github.com/containers/storage/pkg/archive"
 	"github.com/containers/storage/pkg/ioutils"
diff --git a/storage/storage_reference.go b/storage/storage_reference.go
index 335fb5d9..4e137ad1 100644
--- a/storage/storage_reference.go
+++ b/storage/storage_reference.go
@@ -6,9 +6,9 @@ import (
 	"context"
 	"strings"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/containers/storage"
 	digest "github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
diff --git a/storage/storage_transport.go b/storage/storage_transport.go
index 3f87d0c2..62a091da 100644
--- a/storage/storage_transport.go
+++ b/storage/storage_transport.go
@@ -7,14 +7,13 @@ import (
 	"path/filepath"
 	"strings"
 
-	"github.com/pkg/errors"
-
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	"github.com/containers/storage"
 	"github.com/containers/storage/pkg/idtools"
 	digest "github.com/opencontainers/go-digest"
+	"github.com/pkg/errors"
 	"github.com/sirupsen/logrus"
 )
 
diff --git a/tarball/doc.go b/tarball/doc.go
index ebbe156b..ead2d426 100644
--- a/tarball/doc.go
+++ b/tarball/doc.go
@@ -7,11 +7,10 @@
 //	import (
 //		"fmt"
 //
-//		cp "github.com/containers/image/v4/copy"
-//		"github.com/containers/image/v4/tarball"
-//		"github.com/containers/image/v4/transports/alltransports"
-//
-//		imgspecv1 "github.com/containers/image/v4/transports/alltransports"
+//		cp "github.com/containers/image/v5/copy"
+//		"github.com/containers/image/v5/tarball"
+//		"github.com/containers/image/v5/transports/alltransports"
+//		imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 //	)
 //
 //	func imageFromTarball() {
diff --git a/tarball/tarball_reference.go b/tarball/tarball_reference.go
index d33c20de..00150c53 100644
--- a/tarball/tarball_reference.go
+++ b/tarball/tarball_reference.go
@@ -6,9 +6,9 @@ import (
 	"os"
 	"strings"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/image"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/image"
+	"github.com/containers/image/v5/types"
 
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 )
diff --git a/tarball/tarball_src.go b/tarball/tarball_src.go
index f5c3e958..694ad17b 100644
--- a/tarball/tarball_src.go
+++ b/tarball/tarball_src.go
@@ -12,7 +12,7 @@ import (
 	"strings"
 	"time"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/klauspost/pgzip"
 	digest "github.com/opencontainers/go-digest"
 	imgspecs "github.com/opencontainers/image-spec/specs-go"
diff --git a/tarball/tarball_transport.go b/tarball/tarball_transport.go
index 84874cfb..113545cb 100644
--- a/tarball/tarball_transport.go
+++ b/tarball/tarball_transport.go
@@ -7,8 +7,8 @@ import (
 	"os"
 	"strings"
 
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 )
 
 const (
diff --git a/transports/alltransports/alltransports.go b/transports/alltransports/alltransports.go
index ae68fb8e..2110a091 100644
--- a/transports/alltransports/alltransports.go
+++ b/transports/alltransports/alltransports.go
@@ -6,17 +6,17 @@ import (
 	// register all known transports
 	// NOTE: Make sure docs/containers-policy.json.5.md is updated when adding or updating
 	// a transport.
-	_ "github.com/containers/image/v4/directory"
-	_ "github.com/containers/image/v4/docker"
-	_ "github.com/containers/image/v4/docker/archive"
-	_ "github.com/containers/image/v4/oci/archive"
-	_ "github.com/containers/image/v4/oci/layout"
-	_ "github.com/containers/image/v4/openshift"
-	_ "github.com/containers/image/v4/tarball"
+	_ "github.com/containers/image/v5/directory"
+	_ "github.com/containers/image/v5/docker"
+	_ "github.com/containers/image/v5/docker/archive"
+	_ "github.com/containers/image/v5/oci/archive"
+	_ "github.com/containers/image/v5/oci/layout"
+	_ "github.com/containers/image/v5/openshift"
+	_ "github.com/containers/image/v5/tarball"
 	// The ostree transport is registered by ostree*.go
 	// The storage transport is registered by storage*.go
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	"github.com/pkg/errors"
 )
 
diff --git a/transports/alltransports/docker_daemon.go b/transports/alltransports/docker_daemon.go
index d3fc18b2..82224052 100644
--- a/transports/alltransports/docker_daemon.go
+++ b/transports/alltransports/docker_daemon.go
@@ -4,5 +4,5 @@ package alltransports
 
 import (
 	// Register the docker-daemon transport
-	_ "github.com/containers/image/v4/docker/daemon"
+	_ "github.com/containers/image/v5/docker/daemon"
 )
diff --git a/transports/alltransports/docker_daemon_stub.go b/transports/alltransports/docker_daemon_stub.go
index 82e05537..d1370079 100644
--- a/transports/alltransports/docker_daemon_stub.go
+++ b/transports/alltransports/docker_daemon_stub.go
@@ -2,7 +2,7 @@
 
 package alltransports
 
-import "github.com/containers/image/v4/transports"
+import "github.com/containers/image/v5/transports"
 
 func init() {
 	transports.Register(transports.NewStubTransport("docker-daemon"))
diff --git a/transports/alltransports/ostree.go b/transports/alltransports/ostree.go
index 89169661..72432d1e 100644
--- a/transports/alltransports/ostree.go
+++ b/transports/alltransports/ostree.go
@@ -4,5 +4,5 @@ package alltransports
 
 import (
 	// Register the ostree transport
-	_ "github.com/containers/image/v4/ostree"
+	_ "github.com/containers/image/v5/ostree"
 )
diff --git a/transports/alltransports/ostree_stub.go b/transports/alltransports/ostree_stub.go
index 892518d5..f4a862bd 100644
--- a/transports/alltransports/ostree_stub.go
+++ b/transports/alltransports/ostree_stub.go
@@ -2,7 +2,7 @@
 
 package alltransports
 
-import "github.com/containers/image/v4/transports"
+import "github.com/containers/image/v5/transports"
 
 func init() {
 	transports.Register(transports.NewStubTransport("ostree"))
diff --git a/transports/alltransports/storage.go b/transports/alltransports/storage.go
index 96f3e17f..7041eb87 100644
--- a/transports/alltransports/storage.go
+++ b/transports/alltransports/storage.go
@@ -4,5 +4,5 @@ package alltransports
 
 import (
 	// Register the storage transport
-	_ "github.com/containers/image/v4/storage"
+	_ "github.com/containers/image/v5/storage"
 )
diff --git a/transports/alltransports/storage_stub.go b/transports/alltransports/storage_stub.go
index 14c94211..67f0291c 100644
--- a/transports/alltransports/storage_stub.go
+++ b/transports/alltransports/storage_stub.go
@@ -2,7 +2,7 @@
 
 package alltransports
 
-import "github.com/containers/image/v4/transports"
+import "github.com/containers/image/v5/transports"
 
 func init() {
 	transports.Register(transports.NewStubTransport("containers-storage"))
diff --git a/transports/stub.go b/transports/stub.go
index e3ee6203..2c186a90 100644
--- a/transports/stub.go
+++ b/transports/stub.go
@@ -3,7 +3,7 @@ package transports
 import (
 	"fmt"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 )
 
 // stubTransport is an implementation of types.ImageTransport which has a name, but rejects any references with “the transport $name: is not supported in this build”.
diff --git a/transports/transports.go b/transports/transports.go
index 8bdb46b4..46ee3710 100644
--- a/transports/transports.go
+++ b/transports/transports.go
@@ -5,7 +5,7 @@ import (
 	"sort"
 	"sync"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 )
 
 // knownTransports is a registry of known ImageTransport instances.
diff --git a/types/types.go b/types/types.go
index 0be3a3a7..2db8c782 100644
--- a/types/types.go
+++ b/types/types.go
@@ -5,8 +5,8 @@ import (
 	"io"
 	"time"
 
-	"github.com/containers/image/v4/docker/reference"
-	compression "github.com/containers/image/v4/pkg/compression/types"
+	"github.com/containers/image/v5/docker/reference"
+	compression "github.com/containers/image/v5/pkg/compression/types"
 	digest "github.com/opencontainers/go-digest"
 	v1 "github.com/opencontainers/image-spec/specs-go/v1"
 )
diff --git a/version/version.go b/version/version.go
index 0ba4d42a..4513bfc6 100644
--- a/version/version.go
+++ b/version/version.go
@@ -4,11 +4,11 @@ import "fmt"
 
 const (
 	// VersionMajor is for an API incompatible changes
-	VersionMajor = 4
+	VersionMajor = 5
 	// VersionMinor is for functionality in a backwards-compatible manner
 	VersionMinor = 0
 	// VersionPatch is for backwards-compatible bug fixes
-	VersionPatch = 2
+	VersionPatch = 1
 
 	// VersionDev indicates development branch. Releases will be empty string.
 	VersionDev = "-dev"


Test patch:
diff --git a/copy/copy_test.go b/copy/copy_test.go
index 3386962c..e8efa6c8 100644
--- a/copy/copy_test.go
+++ b/copy/copy_test.go
@@ -7,10 +7,9 @@ import (
 	"testing"
 	"time"
 
+	"github.com/containers/image/v5/pkg/compression"
+	digest "github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
-
-	"github.com/containers/image/v4/pkg/compression"
-	"github.com/opencontainers/go-digest"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/copy/manifest_test.go b/copy/manifest_test.go
index a9ff787b..0d8736b5 100644
--- a/copy/manifest_test.go
+++ b/copy/manifest_test.go
@@ -6,9 +6,9 @@ import (
 	"fmt"
 	"testing"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
diff --git a/copy/sign_test.go b/copy/sign_test.go
index f414746a..6d89922a 100644
--- a/copy/sign_test.go
+++ b/copy/sign_test.go
@@ -6,11 +6,11 @@ import (
 	"os"
 	"testing"
 
-	"github.com/containers/image/v4/directory"
-	"github.com/containers/image/v4/docker"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/signature"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/directory"
+	"github.com/containers/image/v5/docker"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/signature"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/directory/directory_test.go b/directory/directory_test.go
index e09b8007..fd36f3a7 100644
--- a/directory/directory_test.go
+++ b/directory/directory_test.go
@@ -7,9 +7,9 @@ import (
 	"os"
 	"testing"
 
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/pkg/blobinfocache/memory"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/pkg/blobinfocache/memory"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
 	"github.com/stretchr/testify/assert"
diff --git a/directory/directory_transport_test.go b/directory/directory_transport_test.go
index b1fed5ec..40f31fcf 100644
--- a/directory/directory_transport_test.go
+++ b/directory/directory_transport_test.go
@@ -7,8 +7,8 @@ import (
 	"path/filepath"
 	"testing"
 
-	_ "github.com/containers/image/v4/internal/testing/explicitfilepath-tmpdir"
-	"github.com/containers/image/v4/types"
+	_ "github.com/containers/image/v5/internal/testing/explicitfilepath-tmpdir"
+	"github.com/containers/image/v5/types"
 	digest "github.com/opencontainers/go-digest"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
diff --git a/directory/explicitfilepath/path_test.go b/directory/explicitfilepath/path_test.go
index 15a03fe2..4933720c 100644
--- a/directory/explicitfilepath/path_test.go
+++ b/directory/explicitfilepath/path_test.go
@@ -7,7 +7,7 @@ import (
 	"path/filepath"
 	"testing"
 
-	_ "github.com/containers/image/v4/internal/testing/explicitfilepath-tmpdir"
+	_ "github.com/containers/image/v5/internal/testing/explicitfilepath-tmpdir"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/docker/archive/transport_test.go b/docker/archive/transport_test.go
index 2e62f42b..c8e65e13 100644
--- a/docker/archive/transport_test.go
+++ b/docker/archive/transport_test.go
@@ -8,8 +8,8 @@ import (
 	"path/filepath"
 	"testing"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/docker/daemon/client_test.go b/docker/daemon/client_test.go
index 7285482b..cfa7ebd7 100644
--- a/docker/daemon/client_test.go
+++ b/docker/daemon/client_test.go
@@ -2,7 +2,7 @@ package daemon
 
 import "testing"
 import (
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	dockerclient "github.com/docker/docker/client"
 	"github.com/stretchr/testify/assert"
 	"net/http"
diff --git a/docker/daemon/daemon_transport_test.go b/docker/daemon/daemon_transport_test.go
index ef96b42f..437f9e07 100644
--- a/docker/daemon/daemon_transport_test.go
+++ b/docker/daemon/daemon_transport_test.go
@@ -4,8 +4,8 @@ import (
 	"context"
 	"testing"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
diff --git a/docker/docker_client_test.go b/docker/docker_client_test.go
index 94330846..65bae780 100644
--- a/docker/docker_client_test.go
+++ b/docker/docker_client_test.go
@@ -6,10 +6,9 @@ import (
 	"testing"
 	"time"
 
-	"github.com/stretchr/testify/require"
-
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
+	"github.com/stretchr/testify/require"
 )
 
 func TestDockerCertDir(t *testing.T) {
diff --git a/docker/docker_transport_test.go b/docker/docker_transport_test.go
index 8aa3794a..b310ce5a 100644
--- a/docker/docker_transport_test.go
+++ b/docker/docker_transport_test.go
@@ -4,8 +4,8 @@ import (
 	"context"
 	"testing"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/docker/lookaside_test.go b/docker/lookaside_test.go
index ff0a5442..7bc9fb5e 100644
--- a/docker/lookaside_test.go
+++ b/docker/lookaside_test.go
@@ -8,7 +8,7 @@ import (
 	"path/filepath"
 	"testing"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/docker/policyconfiguration/naming_test.go b/docker/policyconfiguration/naming_test.go
index 075488c9..8c2b018c 100644
--- a/docker/policyconfiguration/naming_test.go
+++ b/docker/policyconfiguration/naming_test.go
@@ -5,7 +5,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/containers/image/v4/docker/reference"
+	"github.com/containers/image/v5/docker/reference"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/image/docker_schema1_test.go b/image/docker_schema1_test.go
index 56762c85..8830a03b 100644
--- a/image/docker_schema1_test.go
+++ b/image/docker_schema1_test.go
@@ -8,9 +8,9 @@ import (
 	"testing"
 	"time"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	digest "github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/stretchr/testify/assert"
diff --git a/image/docker_schema2_test.go b/image/docker_schema2_test.go
index 89e1526a..23cd3d92 100644
--- a/image/docker_schema2_test.go
+++ b/image/docker_schema2_test.go
@@ -10,9 +10,9 @@ import (
 	"testing"
 	"time"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/pkg/errors"
diff --git a/image/manifest_test.go b/image/manifest_test.go
index 938c88d0..64ad1302 100644
--- a/image/manifest_test.go
+++ b/image/manifest_test.go
@@ -3,8 +3,8 @@ package image
 import (
 	"testing"
 
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 )
 
diff --git a/image/oci_test.go b/image/oci_test.go
index 37f2bfa9..2804a1ee 100644
--- a/image/oci_test.go
+++ b/image/oci_test.go
@@ -10,9 +10,9 @@ import (
 	"testing"
 	"time"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/pkg/errors"
diff --git a/internal/testing/mocks/imagetransport.go b/internal/testing/mocks/imagetransport.go
index 9304649b..c551949f 100644
--- a/internal/testing/mocks/imagetransport.go
+++ b/internal/testing/mocks/imagetransport.go
@@ -1,6 +1,6 @@
 package mocks
 
-import "github.com/containers/image/v4/types"
+import "github.com/containers/image/v5/types"
 
 // NameImageTransport is a mock of types.ImageTransport which returns itself in Name.
 type NameImageTransport string
diff --git a/manifest/docker_schema1_test.go b/manifest/docker_schema1_test.go
index aea26f1b..1f211b82 100644
--- a/manifest/docker_schema1_test.go
+++ b/manifest/docker_schema1_test.go
@@ -6,7 +6,7 @@ import (
 	"testing"
 	"time"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/manifest/docker_schema2_test.go b/manifest/docker_schema2_test.go
index 9774e684..c643ba02 100644
--- a/manifest/docker_schema2_test.go
+++ b/manifest/docker_schema2_test.go
@@ -4,8 +4,8 @@ import (
 	"io/ioutil"
 	"testing"
 
-	"github.com/containers/image/v4/pkg/compression"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/pkg/compression"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 )
 
diff --git a/manifest/list_test.go b/manifest/list_test.go
index 8659fd07..8f34ed8b 100644
--- a/manifest/list_test.go
+++ b/manifest/list_test.go
@@ -5,7 +5,7 @@ import (
 	"path/filepath"
 	"testing"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	digest "github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/stretchr/testify/assert"
diff --git a/manifest/manifest_test.go b/manifest/manifest_test.go
index 739a6f5a..cc73b3b5 100644
--- a/manifest/manifest_test.go
+++ b/manifest/manifest_test.go
@@ -5,7 +5,7 @@ import (
 	"path/filepath"
 	"testing"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/containers/libtrust"
 	digest "github.com/opencontainers/go-digest"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
diff --git a/manifest/oci_test.go b/manifest/oci_test.go
index 13ea86b2..9a1e696e 100644
--- a/manifest/oci_test.go
+++ b/manifest/oci_test.go
@@ -4,8 +4,8 @@ import (
 	"io/ioutil"
 	"testing"
 
-	"github.com/containers/image/v4/pkg/compression"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/pkg/compression"
+	"github.com/containers/image/v5/types"
 	imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/stretchr/testify/assert"
 )
diff --git a/oci/archive/oci_transport_test.go b/oci/archive/oci_transport_test.go
index e9a0dc5f..212a74d6 100644
--- a/oci/archive/oci_transport_test.go
+++ b/oci/archive/oci_transport_test.go
@@ -7,8 +7,8 @@ import (
 	"path/filepath"
 	"testing"
 
-	_ "github.com/containers/image/v4/internal/testing/explicitfilepath-tmpdir"
-	"github.com/containers/image/v4/types"
+	_ "github.com/containers/image/v5/internal/testing/explicitfilepath-tmpdir"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/oci/layout/oci_dest_test.go b/oci/layout/oci_dest_test.go
index 5e1adfa6..a4782bd3 100644
--- a/oci/layout/oci_dest_test.go
+++ b/oci/layout/oci_dest_test.go
@@ -8,8 +8,8 @@ import (
 	"path/filepath"
 	"testing"
 
-	"github.com/containers/image/v4/pkg/blobinfocache/memory"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/pkg/blobinfocache/memory"
+	"github.com/containers/image/v5/types"
 	digest "github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
 	"github.com/stretchr/testify/assert"
diff --git a/oci/layout/oci_src_test.go b/oci/layout/oci_src_test.go
index a3ef0dce..9a77fb36 100644
--- a/oci/layout/oci_src_test.go
+++ b/oci/layout/oci_src_test.go
@@ -12,8 +12,8 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/containers/image/v4/pkg/blobinfocache/memory"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/pkg/blobinfocache/memory"
+	"github.com/containers/image/v5/types"
 	digest "github.com/opencontainers/go-digest"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
diff --git a/oci/layout/oci_transport_test.go b/oci/layout/oci_transport_test.go
index 7c99e989..14981d4c 100644
--- a/oci/layout/oci_transport_test.go
+++ b/oci/layout/oci_transport_test.go
@@ -7,8 +7,8 @@ import (
 	"path/filepath"
 	"testing"
 
-	_ "github.com/containers/image/v4/internal/testing/explicitfilepath-tmpdir"
-	"github.com/containers/image/v4/types"
+	_ "github.com/containers/image/v5/internal/testing/explicitfilepath-tmpdir"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/openshift/openshift_transport_test.go b/openshift/openshift_transport_test.go
index 43534ce1..1cc5af7a 100644
--- a/openshift/openshift_transport_test.go
+++ b/openshift/openshift_transport_test.go
@@ -4,7 +4,7 @@ import (
 	"context"
 	"testing"
 
-	"github.com/containers/image/v4/docker/reference"
+	"github.com/containers/image/v5/docker/reference"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/ostree/ostree_transport_test.go b/ostree/ostree_transport_test.go
index 3a68a768..279c7476 100644
--- a/ostree/ostree_transport_test.go
+++ b/ostree/ostree_transport_test.go
@@ -11,8 +11,8 @@ import (
 	"strings"
 	"testing"
 
-	_ "github.com/containers/image/v4/internal/testing/explicitfilepath-tmpdir"
-	"github.com/containers/image/v4/types"
+	_ "github.com/containers/image/v5/internal/testing/explicitfilepath-tmpdir"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/pkg/blobinfocache/boltdb/boltdb_test.go b/pkg/blobinfocache/boltdb/boltdb_test.go
index 1ec4e0df..079ea280 100644
--- a/pkg/blobinfocache/boltdb/boltdb_test.go
+++ b/pkg/blobinfocache/boltdb/boltdb_test.go
@@ -6,8 +6,8 @@ import (
 	"path/filepath"
 	"testing"
 
-	"github.com/containers/image/v4/pkg/blobinfocache/internal/test"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/pkg/blobinfocache/internal/test"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/require"
 )
 
diff --git a/pkg/blobinfocache/default_test.go b/pkg/blobinfocache/default_test.go
index 97f31fe9..bcf4f82b 100644
--- a/pkg/blobinfocache/default_test.go
+++ b/pkg/blobinfocache/default_test.go
@@ -9,9 +9,9 @@ import (
 	"github.com/sirupsen/logrus"
 	"github.com/stretchr/testify/require"
 
-	"github.com/containers/image/v4/pkg/blobinfocache/boltdb"
-	"github.com/containers/image/v4/pkg/blobinfocache/memory"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/pkg/blobinfocache/boltdb"
+	"github.com/containers/image/v5/pkg/blobinfocache/memory"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 )
 
diff --git a/pkg/blobinfocache/internal/prioritize/prioritize_test.go b/pkg/blobinfocache/internal/prioritize/prioritize_test.go
index 22372ae3..24ec98df 100644
--- a/pkg/blobinfocache/internal/prioritize/prioritize_test.go
+++ b/pkg/blobinfocache/internal/prioritize/prioritize_test.go
@@ -5,7 +5,7 @@ import (
 	"testing"
 	"time"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/opencontainers/go-digest"
 	"github.com/stretchr/testify/assert"
 )
diff --git a/pkg/blobinfocache/internal/test/test.go b/pkg/blobinfocache/internal/test/test.go
index a4f8499c..d9eb592b 100644
--- a/pkg/blobinfocache/internal/test/test.go
+++ b/pkg/blobinfocache/internal/test/test.go
@@ -4,9 +4,8 @@ package test
 import (
 	"testing"
 
-	"github.com/containers/image/v4/internal/testing/mocks"
-
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/internal/testing/mocks"
+	"github.com/containers/image/v5/types"
 	digest "github.com/opencontainers/go-digest"
 	"github.com/stretchr/testify/assert"
 )
diff --git a/pkg/blobinfocache/memory/memory_test.go b/pkg/blobinfocache/memory/memory_test.go
index 18476f40..63040f89 100644
--- a/pkg/blobinfocache/memory/memory_test.go
+++ b/pkg/blobinfocache/memory/memory_test.go
@@ -3,8 +3,8 @@ package memory
 import (
 	"testing"
 
-	"github.com/containers/image/v4/pkg/blobinfocache/internal/test"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/pkg/blobinfocache/internal/test"
+	"github.com/containers/image/v5/types"
 )
 
 func newTestCache(t *testing.T) (types.BlobInfoCache, func(t *testing.T)) {
diff --git a/pkg/docker/config/config_test.go b/pkg/docker/config/config_test.go
index d7b7dd91..aebe1cb7 100644
--- a/pkg/docker/config/config_test.go
+++ b/pkg/docker/config/config_test.go
@@ -8,7 +8,7 @@ import (
 	"path/filepath"
 	"testing"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/types"
 	"github.com/containers/storage/pkg/homedir"
 	"github.com/pkg/errors"
 	"github.com/stretchr/testify/assert"
diff --git a/pkg/sysregistriesv2/system_registries_v2_test.go b/pkg/sysregistriesv2/system_registries_v2_test.go
index e311f39b..afa306a3 100644
--- a/pkg/sysregistriesv2/system_registries_v2_test.go
+++ b/pkg/sysregistriesv2/system_registries_v2_test.go
@@ -7,11 +7,10 @@ import (
 	"path/filepath"
 	"testing"
 
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
-
-	"github.com/containers/image/v4/docker/reference"
 )
 
 func TestParseLocation(t *testing.T) {
diff --git a/signature/policy_config_test.go b/signature/policy_config_test.go
index 75e29187..97ef351e 100644
--- a/signature/policy_config_test.go
+++ b/signature/policy_config_test.go
@@ -7,12 +7,12 @@ import (
 	"path/filepath"
 	"testing"
 
-	"github.com/containers/image/v4/directory"
-	"github.com/containers/image/v4/docker"
+	"github.com/containers/image/v5/directory"
+	"github.com/containers/image/v5/docker"
 	"github.com/pkg/errors"
 	// this import is needed  where we use the "atomic" transport in TestPolicyUnmarshalJSON
-	_ "github.com/containers/image/v4/openshift"
-	"github.com/containers/image/v4/types"
+	_ "github.com/containers/image/v5/openshift"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/signature/policy_eval_signedby_test.go b/signature/policy_eval_signedby_test.go
index 827d8afe..0e6fc31f 100644
--- a/signature/policy_eval_signedby_test.go
+++ b/signature/policy_eval_signedby_test.go
@@ -7,10 +7,10 @@ import (
 	"path"
 	"testing"
 
-	"github.com/containers/image/v4/directory"
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/image"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/directory"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/image"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/signature/policy_eval_simple_test.go b/signature/policy_eval_simple_test.go
index d7d77ddd..1d0c790a 100644
--- a/signature/policy_eval_simple_test.go
+++ b/signature/policy_eval_simple_test.go
@@ -4,9 +4,9 @@ import (
 	"context"
 	"testing"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/internal/testing/mocks"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/internal/testing/mocks"
+	"github.com/containers/image/v5/types"
 )
 
 // nameOnlyImageMock is a mock of types.UnparsedImage which only allows transports.ImageName to work
diff --git a/signature/policy_eval_test.go b/signature/policy_eval_test.go
index 1fff2ede..ff37fff0 100644
--- a/signature/policy_eval_test.go
+++ b/signature/policy_eval_test.go
@@ -6,12 +6,12 @@ import (
 	"os"
 	"testing"
 
-	"github.com/containers/image/v4/docker"
-	"github.com/containers/image/v4/docker/policyconfiguration"
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/internal/testing/mocks"
-	"github.com/containers/image/v4/transports"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker"
+	"github.com/containers/image/v5/docker/policyconfiguration"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/internal/testing/mocks"
+	"github.com/containers/image/v5/transports"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/signature/policy_reference_match_test.go b/signature/policy_reference_match_test.go
index 71e4e5f4..c4fecfc7 100644
--- a/signature/policy_reference_match_test.go
+++ b/signature/policy_reference_match_test.go
@@ -5,9 +5,9 @@ import (
 	"fmt"
 	"testing"
 
-	"github.com/containers/image/v4/docker/reference"
-	"github.com/containers/image/v4/internal/testing/mocks"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/docker/reference"
+	"github.com/containers/image/v5/internal/testing/mocks"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/signature/signature_test.go b/signature/signature_test.go
index c79e2873..96eb8138 100644
--- a/signature/signature_test.go
+++ b/signature/signature_test.go
@@ -7,7 +7,7 @@ import (
 	"testing"
 	"time"
 
-	"github.com/containers/image/v4/version"
+	"github.com/containers/image/v5/version"
 	"github.com/opencontainers/go-digest"
 	"github.com/pkg/errors"
 	"github.com/stretchr/testify/assert"
diff --git a/storage/storage_image_test.go b/storage/storage_image_test.go
index 8064694f..adbcfe98 100644
--- a/storage/storage_image_test.go
+++ b/storage/storage_image_test.go
@@ -3,8 +3,8 @@ package storage
 import (
 	"testing"
 
-	"github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/types"
+	"github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/types"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/storage/storage_test.go b/storage/storage_test.go
index e9aaba74..3b16561f 100644
--- a/storage/storage_test.go
+++ b/storage/storage_test.go
@@ -19,9 +19,9 @@ import (
 	"testing"
 	"time"
 
-	imanifest "github.com/containers/image/v4/manifest"
-	"github.com/containers/image/v4/pkg/blobinfocache/memory"
-	"github.com/containers/image/v4/types"
+	imanifest "github.com/containers/image/v5/manifest"
+	"github.com/containers/image/v5/pkg/blobinfocache/memory"
+	"github.com/containers/image/v5/types"
 	"github.com/containers/storage"
 	"github.com/containers/storage/pkg/archive"
 	"github.com/containers/storage/pkg/idtools"
diff --git a/storage/storage_transport_test.go b/storage/storage_transport_test.go
index 5ac767b1..95777d8e 100644
--- a/storage/storage_transport_test.go
+++ b/storage/storage_transport_test.go
@@ -6,7 +6,7 @@ import (
 	"fmt"
 	"testing"
 
-	"github.com/containers/image/v4/docker/reference"
+	"github.com/containers/image/v5/docker/reference"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )
diff --git a/transports/alltransports/alltransports_test.go b/transports/alltransports/alltransports_test.go
index 8aca7601..1a5d1775 100644
--- a/transports/alltransports/alltransports_test.go
+++ b/transports/alltransports/alltransports_test.go
@@ -3,8 +3,8 @@ package alltransports
 import (
 	"testing"
 
-	"github.com/containers/image/v4/directory"
-	"github.com/containers/image/v4/transports"
+	"github.com/containers/image/v5/directory"
+	"github.com/containers/image/v5/transports"
 	"github.com/stretchr/testify/assert"
 	"github.com/stretchr/testify/require"
 )