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 (
"fmt"
"log"
"git.autistici.org/ale/tabacco/jobs"
"git.autistici.org/ale/tabacco/util"
"git.autistici.org/ai3/tools/tabacco/jobs"
"git.autistici.org/ai3/tools/tabacco/util"
)
// Agent holds a Manager and a Scheduler together, and runs periodic
......
......@@ -4,7 +4,7 @@ import (
"context"
"testing"
"git.autistici.org/ale/tabacco/jobs"
"git.autistici.org/ai3/tools/tabacco/jobs"
)
type fakeManager struct{}
......
......@@ -8,8 +8,8 @@ import (
"os/signal"
"syscall"
"git.autistici.org/ale/tabacco"
mdbc "git.autistici.org/ale/tabacco/metadb/client"
"git.autistici.org/ai3/tools/tabacco"
mdbc "git.autistici.org/ai3/tools/tabacco/metadb/client"
"github.com/google/subcommands"
)
......
......@@ -7,7 +7,7 @@ import (
"log"
"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"
"gopkg.in/yaml.v2"
)
......
......@@ -7,9 +7,9 @@ import (
"github.com/google/subcommands"
"git.autistici.org/ale/tabacco"
"git.autistici.org/ale/tabacco/jobs"
mdbc "git.autistici.org/ale/tabacco/metadb/client"
"git.autistici.org/ai3/tools/tabacco"
"git.autistici.org/ai3/tools/tabacco/jobs"
mdbc "git.autistici.org/ai3/tools/tabacco/metadb/client"
)
type restoreCommand struct {
......
......@@ -12,8 +12,8 @@ import (
"git.autistici.org/ai3/go-common/clientutil"
"gopkg.in/yaml.v2"
"git.autistici.org/ale/tabacco/jobs"
"git.autistici.org/ale/tabacco/util"
"git.autistici.org/ai3/tools/tabacco/jobs"
"git.autistici.org/ai3/tools/tabacco/util"
)
var defaultSeedFile = "/var/tmp/.tabacco_scheduler_seed"
......
......@@ -14,11 +14,11 @@ func TestReadConfig(t *testing.T) {
if err != nil {
t.Fatal("ReadConfig()", err)
}
if len(conf.SourceSpecs) != 1 {
t.Fatalf("no SourceSpecs in config: %+v", conf)
if l := len(conf.SourceSpecs); l != 1 {
t.Fatalf("couldn't read all SourceSpecs: got %d, expected %d", l, 1)
}
if len(conf.HandlerSpecs) != 1 {
t.Fatalf("no HandlerSpecs in config: %+v", conf)
if l := len(conf.HandlerSpecs); l != 3 {
t.Fatalf("couldn't read all HandlerSpecs: got %d, expected %d", l, 3)
}
}
......
......@@ -7,7 +7,7 @@ Build-Depends: debhelper (>= 9),
dh-golang,
golang-any (>= 1.10)
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
Architecture: any
......
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: tabacco
Source: https://git.autistici.org/ale/tabacco
Source: https://git.autistici.org/ai3/tools/tabacco
Files: *
Copyright: 2018 <ale@incal.net>
......
#!/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_INSTALL_ALL = 1
......
......@@ -5,7 +5,7 @@ import (
"errors"
"path/filepath"
"git.autistici.org/ale/tabacco/jobs"
"git.autistici.org/ai3/tools/tabacco/jobs"
)
type fileHandler struct {
......
......@@ -7,7 +7,7 @@ import (
"os"
"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
......
......@@ -6,7 +6,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"git.autistici.org/ale/tabacco/jobs"
"git.autistici.org/ai3/tools/tabacco/jobs"
)
var (
......
......@@ -8,7 +8,7 @@ import (
"sync"
"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
......
......@@ -12,7 +12,7 @@ import (
"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.
......
......@@ -7,8 +7,8 @@ import (
"os"
"time"
"git.autistici.org/ale/tabacco/jobs"
"git.autistici.org/ale/tabacco/util"
"git.autistici.org/ai3/tools/tabacco/jobs"
"git.autistici.org/ai3/tools/tabacco/util"
)
// Manager for backups and restores.
......
......@@ -6,7 +6,7 @@ import (
"testing"
"time"
"git.autistici.org/ale/tabacco/jobs"
"git.autistici.org/ai3/tools/tabacco/jobs"
)
type dummyMetadataEntry struct {
......
......@@ -4,7 +4,7 @@ import (
"context"
"git.autistici.org/ai3/go-common/clientutil"
"git.autistici.org/ale/tabacco"
"git.autistici.org/ai3/tools/tabacco"
)
type metadbClient struct {
......
......@@ -5,8 +5,7 @@ import (
"net/http"
"git.autistici.org/ai3/go-common/serverutil"
"git.autistici.org/ale/tabacco"
"git.autistici.org/ai3/tools/tabacco"
)
type httpServer struct {
......
......@@ -9,7 +9,7 @@ import (
"strings"
"time"
"git.autistici.org/ale/tabacco"
"git.autistici.org/ai3/tools/tabacco"
)
// An atom, as represented in the database, denormalized.
......
......@@ -7,7 +7,7 @@ import (
"testing"
"time"
"git.autistici.org/ale/tabacco"
"git.autistici.org/ai3/tools/tabacco"
)
const DBFILE = ".service_test.db"
......
......@@ -9,7 +9,7 @@ import (
"github.com/mattes/migrate/database/sqlite3"
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) {
......
......@@ -9,7 +9,7 @@ import (
"path/filepath"
"testing"
"git.autistici.org/ale/tabacco/jobs"
"git.autistici.org/ai3/tools/tabacco/jobs"
)
// Create a temporary directory with two subdirs: 'data', for
......
......@@ -12,7 +12,7 @@ import (
"strconv"
"strings"
"git.autistici.org/ale/tabacco/jobs"
"git.autistici.org/ai3/tools/tabacco/jobs"
)
// 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 (
"strings"
"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
......
......@@ -321,5 +321,5 @@
"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