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

@ -8,8 +8,8 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/cli"
"github.com/FAU-CDI/wisski-distillery/internal/wisski"
"github.com/tkw1536/goprogram/exit"
"github.com/tkw1536/goprogram/status"
"github.com/tkw1536/pkglib/collection"
"github.com/tkw1536/pkglib/status"
)
// BlindUpdate is the 'blind_update' command

View file

@ -8,7 +8,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/cli"
"github.com/FAU-CDI/wisski-distillery/internal/wisski"
"github.com/tkw1536/goprogram/exit"
"github.com/tkw1536/goprogram/status"
"github.com/tkw1536/pkglib/status"
)
// Cron is the 'cron' command

View file

@ -9,7 +9,7 @@ import (
wstatus "github.com/FAU-CDI/wisski-distillery/internal/status"
"github.com/FAU-CDI/wisski-distillery/internal/wisski"
"github.com/tkw1536/goprogram/exit"
"github.com/tkw1536/goprogram/status"
"github.com/tkw1536/pkglib/status"
)
// DrupalUser is the 'drupal_user' setting

View file

@ -8,7 +8,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/cli"
"github.com/FAU-CDI/wisski-distillery/internal/wisski"
"github.com/tkw1536/goprogram/exit"
"github.com/tkw1536/goprogram/status"
"github.com/tkw1536/pkglib/status"
)
// Cron is the 'cron' command

View file

@ -11,7 +11,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/wisski"
"github.com/FAU-CDI/wisski-distillery/pkg/logging"
"github.com/tkw1536/goprogram/exit"
"github.com/tkw1536/goprogram/status"
"github.com/tkw1536/pkglib/status"
)
// SystemPause is the 'system_pause' command

View file

@ -13,7 +13,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/pkg/logging"
"github.com/tkw1536/goprogram/exit"
"github.com/tkw1536/goprogram/parser"
"github.com/tkw1536/goprogram/status"
"github.com/tkw1536/pkglib/status"
)
// SystemUpdate is the 'system_update' command

View file

@ -9,7 +9,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/wisski"
"github.com/tkw1536/goprogram/exit"
"github.com/tkw1536/goprogram/status"
"github.com/tkw1536/pkglib/status"
)
// Cron is the 'cron' command

View file

@ -10,7 +10,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/cmd"
"github.com/FAU-CDI/wisski-distillery/internal/cli"
"github.com/tkw1536/goprogram/exit"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/stream"
)
var wdcli = wisski_distillery.NewProgram()
@ -95,7 +95,7 @@ func main() {
// we don't need to even bother with the rest of the program
// just immediatly return a custom error message.
if len(os.Args) == 1 {
streams.Die(errNoArgumentsProvided)
exit.Die(streams, errNoArgumentsProvided)
errNoArgumentsProvided.Return()
return
}
@ -105,7 +105,7 @@ func main() {
err := func() error {
params, err := cli.ParamsFromEnv()
if err != nil {
return streams.Die(err)
return exit.Die(streams, err)
}
return wdcli.Main(streams, params, os.Args[1:])

4
go.mod
View file

@ -15,8 +15,8 @@ require (
github.com/pkg/errors v0.9.1
github.com/pquerna/otp v1.4.0
github.com/rs/zerolog v1.29.0
github.com/tkw1536/goprogram v0.3.3
github.com/tkw1536/pkglib v0.0.0-20230309112229-8571d9173163
github.com/tkw1536/goprogram v0.3.4
github.com/tkw1536/pkglib v0.0.0-20230315183422-bdc7380721a8
github.com/yuin/goldmark v1.5.4
github.com/yuin/goldmark-meta v1.1.0
golang.org/x/crypto v0.7.0

8
go.sum
View file

@ -113,10 +113,10 @@ github.com/tdewolff/minify v2.3.6+incompatible/go.mod h1:9Ov578KJUmAWpS6NeZwRZyT
github.com/tdewolff/parse v2.3.4+incompatible h1:x05/cnGwIMf4ceLuDMBOdQ1qGniMoxpP46ghf0Qzh38=
github.com/tdewolff/parse v2.3.4+incompatible/go.mod h1:8oBwCsVmUkgHO8M5iCzSIDtpzXOT0WXX9cWhz+bIzJQ=
github.com/tdewolff/test v1.0.7 h1:8Vs0142DmPFW/bQeHRP3MV19m1gvndjUb1sn8yy74LM=
github.com/tkw1536/goprogram v0.3.3 h1:5MWoniR/sXk/rb+LNiW01SlrR8kUuzbaPBNgGUSweis=
github.com/tkw1536/goprogram v0.3.3/go.mod h1:mzbobl44pmYw5VmXajqcFkytOUkYiP+EoMi0MK9PSMI=
github.com/tkw1536/pkglib v0.0.0-20230309112229-8571d9173163 h1:1s1uCeBiQFzsSY6Do7NUHfk6n40gDwdTVZPuCS0oAbc=
github.com/tkw1536/pkglib v0.0.0-20230309112229-8571d9173163/go.mod h1:R+8tKMAkSXC1+XGzxNUKx2DnPJqObycYeo4PKjWYkMg=
github.com/tkw1536/goprogram v0.3.4 h1:Fl9YadnL5E9DGiROY/i4ODyi5PVPySvpe7G7KmZV8XY=
github.com/tkw1536/goprogram v0.3.4/go.mod h1:pdhpcH0vbPFF+iaV3i3Ty+J0Fpv6QFn83e3LWbH09eQ=
github.com/tkw1536/pkglib v0.0.0-20230315183422-bdc7380721a8 h1:pVlqKX/6wzoNlP53rLqvhU+rZzBNh8Id2Kl1HEsQP4g=
github.com/tkw1536/pkglib v0.0.0-20230315183422-bdc7380721a8/go.mod h1:RjPEyRcq+g1GMd3D/o7d9WCtVNXY4QZyFRs9hLlZbew=
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo=
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=

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.

View file

@ -9,7 +9,7 @@ import (
"path/filepath"
"github.com/rs/zerolog"
"github.com/tkw1536/goprogram/stream"
"github.com/tkw1536/pkglib/stream"
)
// CommandError is returned by Exec when a command could not be executed.