Rename base package to git.monogon.dev/source/smalltown.git
This ensures that the package is go get-able in our managed environment,
which has SSH configs for git.monogon.dev by default.
go knows that it's a Git repo by matching on ".git"
(see: https://golang.org/cmd/go/#hdr-Remote_import_paths).
The package name is a bit more unwieldy than it needs to be, so maybe
we should add go-import metadata to git.monogon.dev at some point
(which is not straight-forward, since Go does not understand SRV records,
so this needs to be added to the Phabricator web server).
Also refreshed all generated files and go.mod/go.sum.
Test Plan:
make cmd/mkimage/mkimage
make cmd/init/init
X-Origin-Diff: phab/D193
GitOrigin-RevId: 766325ccd9a51d04eba0e49269c530c520444193
diff --git a/cmd/init/main.go b/cmd/init/main.go
index e92b7b3..3dece3b 100644
--- a/cmd/init/main.go
+++ b/cmd/init/main.go
@@ -21,9 +21,9 @@
"os"
"os/signal"
"runtime/debug"
- "smalltown/internal/network"
- "smalltown/internal/node"
- "smalltown/pkg/tpm"
+ "git.monogon.dev/source/smalltown.git/internal/network"
+ "git.monogon.dev/source/smalltown.git/internal/node"
+ "git.monogon.dev/source/smalltown.git/pkg/tpm"
"go.uber.org/zap"
"golang.org/x/sys/unix"
diff --git a/internal/storage/blockdev.go b/internal/storage/blockdev.go
index 224cf28..ad56ecd 100644
--- a/internal/storage/blockdev.go
+++ b/internal/storage/blockdev.go
@@ -20,8 +20,8 @@
"encoding/binary"
"encoding/hex"
"fmt"
+ "git.monogon.dev/source/smalltown.git/pkg/devicemapper"
"os"
- "smalltown/pkg/devicemapper"
"syscall"
"golang.org/x/sys/unix"
diff --git a/internal/storage/data.go b/internal/storage/data.go
index 2ffd180..618f68f 100644
--- a/internal/storage/data.go
+++ b/internal/storage/data.go
@@ -18,12 +18,12 @@
import (
"fmt"
+ "git.monogon.dev/source/smalltown.git/internal/common"
+ "git.monogon.dev/source/smalltown.git/pkg/tpm"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
- "smalltown/internal/common"
- "smalltown/pkg/tpm"
"sync"
"go.uber.org/zap"
diff --git a/internal/storage/find.go b/internal/storage/find.go
index 72d3f6a..3a708c2 100644
--- a/internal/storage/find.go
+++ b/internal/storage/find.go
@@ -18,10 +18,10 @@
import (
"fmt"
+ "git.monogon.dev/source/smalltown.git/pkg/sysfs"
"io/ioutil"
"os"
"path/filepath"
- "smalltown/pkg/sysfs"
"strconv"
"github.com/rekby/gpt"
diff --git a/pkg/tpm/tpm.go b/pkg/tpm/tpm.go
index 0f5719b..2a59094 100644
--- a/pkg/tpm/tpm.go
+++ b/pkg/tpm/tpm.go
@@ -19,10 +19,10 @@
import (
"crypto/rand"
"fmt"
+ "git.monogon.dev/source/smalltown.git/pkg/sysfs"
"io"
"os"
"path/filepath"
- "smalltown/pkg/sysfs"
"strconv"
"sync"