Skip to content

Commit

Permalink
Remove support for legacy age store format
Browse files Browse the repository at this point in the history
  • Loading branch information
kpitt committed Sep 27, 2022
1 parent 0b03e33 commit 4adbe2d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 130 deletions.
121 changes: 0 additions & 121 deletions internal/backend/crypto/age/keyring.go

This file was deleted.

9 changes: 0 additions & 9 deletions internal/backend/crypto/age/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"

"github.com/kpitt/gopass/internal/backend"
"github.com/kpitt/gopass/internal/out"
"github.com/kpitt/gopass/pkg/debug"
)

Expand All @@ -26,14 +25,6 @@ func (l loader) New(ctx context.Context) (backend.Crypto, error) {
}

func (l loader) Handles(ctx context.Context, s backend.Storage) error {
if s.Exists(ctx, OldIDFile) || s.Exists(ctx, OldKeyring) {
if err := migrate(ctx, s); err != nil {
out.Errorf(ctx, "Failed to migrate age backend: %s", err)
}
out.OKf(ctx, "Migrated age backend to new format")

return nil
}
if s.Exists(ctx, IDFile) {
return nil
}
Expand Down

0 comments on commit 4adbe2d

Please sign in to comment.