Commit 54c6eca8 authored by ale's avatar ale

Rename package to new location

Rewrite all internal references to the old package repository path.
parent 29e057fa
Pipeline #3437 passed with stages
in 1 minute and 53 seconds
...@@ -5,8 +5,8 @@ import ( ...@@ -5,8 +5,8 @@ import (
"fmt" "fmt"
"log" "log"
"git.autistici.org/ale/tabacco/jobs" "git.autistici.org/ai3/tools/tabacco/jobs"
"git.autistici.org/ale/tabacco/util" "git.autistici.org/ai3/tools/tabacco/util"
) )
// Agent holds a Manager and a Scheduler together, and runs periodic // Agent holds a Manager and a Scheduler together, and runs periodic
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"context" "context"
"testing" "testing"
"git.autistici.org/ale/tabacco/jobs" "git.autistici.org/ai3/tools/tabacco/jobs"
) )
type fakeManager struct{} type fakeManager struct{}
......
...@@ -8,8 +8,8 @@ import ( ...@@ -8,8 +8,8 @@ import (
"os/signal" "os/signal"
"syscall" "syscall"
"git.autistici.org/ale/tabacco" "git.autistici.org/ai3/tools/tabacco"
mdbc "git.autistici.org/ale/tabacco/metadb/client" mdbc "git.autistici.org/ai3/tools/tabacco/metadb/client"
"github.com/google/subcommands" "github.com/google/subcommands"
) )
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"log" "log"
"git.autistici.org/ai3/go-common/serverutil" "git.autistici.org/ai3/go-common/serverutil"
mdbs "git.autistici.org/ale/tabacco/metadb/server" mdbs "git.autistici.org/ai3/tools/tabacco/metadb/server"
"github.com/google/subcommands" "github.com/google/subcommands"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
) )
......
...@@ -7,9 +7,9 @@ import ( ...@@ -7,9 +7,9 @@ import (
"github.com/google/subcommands" "github.com/google/subcommands"
"git.autistici.org/ale/tabacco" "git.autistici.org/ai3/tools/tabacco"
"git.autistici.org/ale/tabacco/jobs" "git.autistici.org/ai3/tools/tabacco/jobs"
mdbc "git.autistici.org/ale/tabacco/metadb/client" mdbc "git.autistici.org/ai3/tools/tabacco/metadb/client"
) )
type restoreCommand struct { type restoreCommand struct {
......
...@@ -12,8 +12,8 @@ import ( ...@@ -12,8 +12,8 @@ import (
"git.autistici.org/ai3/go-common/clientutil" "git.autistici.org/ai3/go-common/clientutil"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"git.autistici.org/ale/tabacco/jobs" "git.autistici.org/ai3/tools/tabacco/jobs"
"git.autistici.org/ale/tabacco/util" "git.autistici.org/ai3/tools/tabacco/util"
) )
var defaultSeedFile = "/var/tmp/.tabacco_scheduler_seed" var defaultSeedFile = "/var/tmp/.tabacco_scheduler_seed"
......
...@@ -14,11 +14,11 @@ func TestReadConfig(t *testing.T) { ...@@ -14,11 +14,11 @@ func TestReadConfig(t *testing.T) {
if err != nil { if err != nil {
t.Fatal("ReadConfig()", err) t.Fatal("ReadConfig()", err)
} }
if len(conf.SourceSpecs) != 1 { if l := len(conf.SourceSpecs); l != 1 {
t.Fatalf("no SourceSpecs in config: %+v", conf) t.Fatalf("couldn't read all SourceSpecs: got %d, expected %d", l, 1)
} }
if len(conf.HandlerSpecs) != 1 { if l := len(conf.HandlerSpecs); l != 3 {
t.Fatalf("no HandlerSpecs in config: %+v", conf) t.Fatalf("couldn't read all HandlerSpecs: got %d, expected %d", l, 3)
} }
} }
......
...@@ -7,7 +7,7 @@ Build-Depends: debhelper (>= 9), ...@@ -7,7 +7,7 @@ Build-Depends: debhelper (>= 9),
dh-golang, dh-golang,
golang-any (>= 1.10) golang-any (>= 1.10)
Standards-Version: 3.9.6 Standards-Version: 3.9.6
XS-Go-Import-Path: git.autistici.org/ale/tabacco XS-Go-Import-Path: git.autistici.org/ai3/tools/tabacco
Package: tabacco Package: tabacco
Architecture: any Architecture: any
......
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: tabacco Upstream-Name: tabacco
Source: https://git.autistici.org/ale/tabacco Source: https://git.autistici.org/ai3/tools/tabacco
Files: * Files: *
Copyright: 2018 <ale@incal.net> Copyright: 2018 <ale@incal.net>
......
#!/usr/bin/make -f #!/usr/bin/make -f
export DH_GOPKG = git.autistici.org/ale/tabacco export DH_GOPKG = git.autistici.org/ai3/tools/tabacco
export DH_GOLANG_EXCLUDES = vendor export DH_GOLANG_EXCLUDES = vendor
export DH_GOLANG_INSTALL_ALL = 1 export DH_GOLANG_INSTALL_ALL = 1
......
...@@ -5,7 +5,7 @@ import ( ...@@ -5,7 +5,7 @@ import (
"errors" "errors"
"path/filepath" "path/filepath"
"git.autistici.org/ale/tabacco/jobs" "git.autistici.org/ai3/tools/tabacco/jobs"
) )
type fileHandler struct { type fileHandler struct {
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"git.autistici.org/ale/tabacco/jobs" "git.autistici.org/ai3/tools/tabacco/jobs"
) )
// The pipeHandler must work on a 1:1 dataset/atom mapping, because it // The pipeHandler must work on a 1:1 dataset/atom mapping, because it
......
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
"git.autistici.org/ale/tabacco/jobs" "git.autistici.org/ai3/tools/tabacco/jobs"
) )
var ( var (
......
...@@ -8,7 +8,7 @@ import ( ...@@ -8,7 +8,7 @@ import (
"sync" "sync"
"time" "time"
"git.autistici.org/ale/tabacco/util" "git.autistici.org/ai3/tools/tabacco/util"
) )
// Job is a task that can be run and canceled, and that has a string // Job is a task that can be run and canceled, and that has a string
......
...@@ -12,7 +12,7 @@ import ( ...@@ -12,7 +12,7 @@ import (
"github.com/robfig/cron" "github.com/robfig/cron"
"git.autistici.org/ale/tabacco/util" "git.autistici.org/ai3/tools/tabacco/util"
) )
// JobGeneratorFunc is a function that returns a new Job. // JobGeneratorFunc is a function that returns a new Job.
......
...@@ -7,8 +7,8 @@ import ( ...@@ -7,8 +7,8 @@ import (
"os" "os"
"time" "time"
"git.autistici.org/ale/tabacco/jobs" "git.autistici.org/ai3/tools/tabacco/jobs"
"git.autistici.org/ale/tabacco/util" "git.autistici.org/ai3/tools/tabacco/util"
) )
// Manager for backups and restores. // Manager for backups and restores.
......
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
"testing" "testing"
"time" "time"
"git.autistici.org/ale/tabacco/jobs" "git.autistici.org/ai3/tools/tabacco/jobs"
) )
type dummyMetadataEntry struct { type dummyMetadataEntry struct {
......
...@@ -4,7 +4,7 @@ import ( ...@@ -4,7 +4,7 @@ import (
"context" "context"
"git.autistici.org/ai3/go-common/clientutil" "git.autistici.org/ai3/go-common/clientutil"
"git.autistici.org/ale/tabacco" "git.autistici.org/ai3/tools/tabacco"
) )
type metadbClient struct { type metadbClient struct {
......
...@@ -5,8 +5,7 @@ import ( ...@@ -5,8 +5,7 @@ import (
"net/http" "net/http"
"git.autistici.org/ai3/go-common/serverutil" "git.autistici.org/ai3/go-common/serverutil"
"git.autistici.org/ai3/tools/tabacco"
"git.autistici.org/ale/tabacco"
) )
type httpServer struct { type httpServer struct {
......
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
"strings" "strings"
"time" "time"
"git.autistici.org/ale/tabacco" "git.autistici.org/ai3/tools/tabacco"
) )
// An atom, as represented in the database, denormalized. // An atom, as represented in the database, denormalized.
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"testing" "testing"
"time" "time"
"git.autistici.org/ale/tabacco" "git.autistici.org/ai3/tools/tabacco"
) )
const DBFILE = ".service_test.db" const DBFILE = ".service_test.db"
......
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
"github.com/mattes/migrate/database/sqlite3" "github.com/mattes/migrate/database/sqlite3"
bindata "github.com/mattes/migrate/source/go-bindata" bindata "github.com/mattes/migrate/source/go-bindata"
"git.autistici.org/ale/tabacco/metadb/migrations" "git.autistici.org/ai3/tools/tabacco/metadb/migrations"
) )
func openDB(dbDriver, dbURI string) (*sql.DB, error) { func openDB(dbDriver, dbURI string) (*sql.DB, error) {
......
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"git.autistici.org/ale/tabacco/jobs" "git.autistici.org/ai3/tools/tabacco/jobs"
) )
// Create a temporary directory with two subdirs: 'data', for // Create a temporary directory with two subdirs: 'data', for
......
...@@ -12,7 +12,7 @@ import ( ...@@ -12,7 +12,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"git.autistici.org/ale/tabacco/jobs" "git.autistici.org/ai3/tools/tabacco/jobs"
) )
// Environment variables starting with any of the following strings // Environment variables starting with any of the following strings
......
---
- name: file2
type: file
params:
path: "/file2"
- name: file3
type: file
params:
path: "/file3"
...@@ -8,7 +8,7 @@ import ( ...@@ -8,7 +8,7 @@ import (
"strings" "strings"
"time" "time"
"git.autistici.org/ale/tabacco/jobs" "git.autistici.org/ai3/tools/tabacco/jobs"
) )
// Backup is the over-arching entity describing a high level backup // Backup is the over-arching entity describing a high level backup
......
...@@ -321,5 +321,5 @@ ...@@ -321,5 +321,5 @@
"revisionTime": "2018-03-28T19:50:20Z" "revisionTime": "2018-03-28T19:50:20Z"
} }
], ],
"rootPath": "git.autistici.org/ale/tabacco" "rootPath": "git.autistici.org/ai3/tools/tabacco"
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment