Skip to content

Commit

Permalink
Rename to nix2container
Browse files Browse the repository at this point in the history
  • Loading branch information
nlewo committed Jan 9, 2022
1 parent 2dd8d3d commit d6b6bdb
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cmd/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"encoding/json"
"github.com/spf13/cobra"
"github.com/opencontainers/image-spec/specs-go/v1"
"github.com/nlewo/containers-image-nix/types"
"github.com/nlewo/nix2container/types"
)

var imageCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"io/ioutil"
"encoding/json"
"github.com/spf13/cobra"
"github.com/nlewo/containers-image-nix/nix"
"github.com/nlewo/nix2container/nix"
_ "crypto/sha256"
_ "crypto/sha512"
"github.com/nlewo/containers-image-nix/types"
"github.com/nlewo/nix2container/types"
digest "github.com/opencontainers/go-digest"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "nix-containers-image",
Short: "Generate nix container images!",
Use: "container2nix",
Short: "Generate container image from Nix storepaths",
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/nlewo/containers-image-nix
module github.com/nlewo/nix2container

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/nlewo/containers-image-nix/cmd"
import "github.com/nlewo/nix2container/cmd"

func main() {
cmd.Execute()
Expand Down
2 changes: 1 addition & 1 deletion nix/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package nix
import (
"os"
"io"
"github.com/nlewo/containers-image-nix/types"
"github.com/nlewo/nix2container/types"
)

func LayerGetBlob(layer types.Layer) (reader io.ReadCloser, size int64, err error) {
Expand Down
2 changes: 1 addition & 1 deletion nix/tar.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"os"
"fmt"
digest "github.com/opencontainers/go-digest"
"github.com/nlewo/containers-image-nix/types"
"github.com/nlewo/nix2container/types"
)

func TarPathsWrite(paths types.Paths, destinationFilename string) (digest.Digest, error) {
Expand Down

0 comments on commit d6b6bdb

Please sign in to comment.