Update dependencies

This commit is contained in:
Tom Wiesing 2023-03-15 19:45:50 +01:00
parent 0c888eab1c
commit 9b30223b09
No known key found for this signature in database
26 changed files with 35 additions and 35 deletions

View file

@ -12,7 +12,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/pkg/fsx"
"github.com/FAU-CDI/wisski-distillery/pkg/logging"
"github.com/tkw1536/goprogram/status"
"github.com/tkw1536/pkglib/status"
"golang.org/x/exp/slices"
)
@ -84,7 +84,7 @@ func (backup *Backup) run(ctx context.Context, progress io.Writer, exporter *Exp
st.Start()
defer st.Stop()
errors := status.Group[component.Backupable, error]{
errors, _ := status.Group[component.Backupable, error]{
PrefixString: func(item component.Backupable, index int) string {
return fmt.Sprintf("[backup %q]: ", item.Name())
},
@ -131,7 +131,7 @@ func (backup *Backup) run(ctx context.Context, progress io.Writer, exporter *Exp
}
// make a backup of the snapshots
backup.InstanceSnapshots = status.Group[*wisski.WissKI, Snapshot]{
backup.InstanceSnapshots, _ = status.Group[*wisski.WissKI, Snapshot]{
PrefixString: func(item *wisski.WissKI, index int) string {
return fmt.Sprintf("[snapshot %q]: ", item.Slug)
},

View file

@ -14,7 +14,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/pkg/fsx"
"github.com/FAU-CDI/wisski-distillery/pkg/logging"
"github.com/FAU-CDI/wisski-distillery/pkg/targz"
"github.com/tkw1536/goprogram/status"
"github.com/tkw1536/pkglib/status"
)
// ExportTask describes a task that makes either a [Backup] or a [Snapshot].

View file

@ -12,8 +12,8 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/wisski"
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient/locker"
"github.com/FAU-CDI/wisski-distillery/pkg/logging"
"github.com/tkw1536/goprogram/status"
"github.com/tkw1536/pkglib/collection"
"github.com/tkw1536/pkglib/status"
"golang.org/x/exp/slices"
)
@ -113,7 +113,7 @@ func (snapshot *Snapshot) makeParts(ctx context.Context, progress io.Writer, sna
results := make(map[string]error, len(comps))
errors := status.Group[component.Snapshotable, error]{
errors, _ := status.Group[component.Snapshotable, error]{
PrefixString: func(item component.Snapshotable, index int) string {
return fmt.Sprintf("[snapshot %q]: ", item.Name())
},

View file

@ -10,8 +10,8 @@ import (
"time"
"github.com/gorilla/websocket"
"github.com/tkw1536/goprogram/status"
"github.com/tkw1536/pkglib/httpx"
"github.com/tkw1536/pkglib/status"
)
// ActionMap handles a set of WebSocket actions

View file

@ -6,7 +6,7 @@ import (
"io"
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/stream"
)
var errSQLBackup = errors.New("`SQLBackup': mysqldump returned non-zero exit code")

View file

@ -6,7 +6,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
"github.com/FAU-CDI/wisski-distillery/internal/models"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/stream"
)
func (*SQL) SnapshotNeedsRunning() bool { return false }

View file

@ -10,8 +10,8 @@ import (
"github.com/FAU-CDI/wisski-distillery/pkg/logging"
"github.com/tkw1536/goprogram/exit"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/sqlx"
"github.com/tkw1536/pkglib/stream"
"github.com/tkw1536/pkglib/timex"
)

View file

@ -14,7 +14,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/pkg/fsx"
"github.com/FAU-CDI/wisski-distillery/pkg/unpack"
"github.com/pkg/errors"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/stream"
)
// Stack represents a 'docker compose' stack living in a specific directory

View file

@ -4,7 +4,7 @@ package phpx
import (
"context"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/stream"
)
// Executor represents anything that can spawn

View file

@ -11,11 +11,11 @@ import (
_ "embed"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/collection"
"github.com/tkw1536/pkglib/contextx"
"github.com/tkw1536/pkglib/lazy"
"github.com/tkw1536/pkglib/nobufio"
"github.com/tkw1536/pkglib/stream"
)
// Server represents a server that executes PHP code.

View file

@ -11,7 +11,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/status"
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient"
"github.com/tkw1536/goprogram/exit"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/stream"
)
var errCronFailed = exit.Error{

View file

@ -10,7 +10,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient"
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient/mstore"
"github.com/tkw1536/goprogram/exit"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/stream"
)
var errBlindUpdateFailed = exit.Error{

View file

@ -9,7 +9,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient"
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient/barrel"
"github.com/alessio/shellescape"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/stream"
)
// Provisioner provides provisioning for a barrel

View file

@ -3,7 +3,7 @@ package barrel
import (
"context"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/stream"
)
// Shell executes a shell command inside the instance.

View file

@ -6,7 +6,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/phpx"
"github.com/alessio/shellescape"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/stream"
)
// NewServer returns a new server that can execute code within this distillery.