You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-11-06 09:09:29 +02:00
feat(deps): bump github.com/charmbracelet/keygen from 0.2.1 to 0.3.0 (#3024)
* feat(deps): bump github.com/charmbracelet/keygen from 0.2.1 to 0.3.0 Bumps [github.com/charmbracelet/keygen](https://github.com/charmbracelet/keygen) from 0.2.1 to 0.3.0. - [Release notes](https://github.com/charmbracelet/keygen/releases) - [Commits](https://github.com/charmbracelet/keygen/compare/v0.2.1...v0.3.0) --- updated-dependencies: - dependency-name: github.com/charmbracelet/keygen dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix: dep update Signed-off-by: Carlos A Becker <caarlos0@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
@@ -234,7 +234,7 @@ func TestFullPipe(t *testing.T) {
|
||||
} {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
url := makeBareRepo(t)
|
||||
key := makeKey(t)
|
||||
key := makeKey(t, keygen.Ed25519)
|
||||
|
||||
folder := t.TempDir()
|
||||
ctx := &context.Context{
|
||||
@@ -320,7 +320,7 @@ func TestFullPipe(t *testing.T) {
|
||||
|
||||
func TestRunPipe(t *testing.T) {
|
||||
url := makeBareRepo(t)
|
||||
key := makeKey(t)
|
||||
key := makeKey(t, keygen.Ed25519)
|
||||
|
||||
folder := t.TempDir()
|
||||
ctx := &context.Context{
|
||||
@@ -466,7 +466,7 @@ func TestRunPipeNoBuilds(t *testing.T) {
|
||||
|
||||
func TestRunPipeBinaryRelease(t *testing.T) {
|
||||
url := makeBareRepo(t)
|
||||
key := makeKey(t)
|
||||
key := makeKey(t, keygen.Ed25519)
|
||||
folder := t.TempDir()
|
||||
ctx := &context.Context{
|
||||
Git: context.GitInfo{
|
||||
@@ -709,7 +709,7 @@ func TestSkip(t *testing.T) {
|
||||
|
||||
func TestKeyPath(t *testing.T) {
|
||||
t.Run("with valid path", func(t *testing.T) {
|
||||
path := makeKey(t)
|
||||
path := makeKey(t, keygen.Ed25519)
|
||||
result, err := keyPath(path)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, path, result)
|
||||
@@ -768,16 +768,14 @@ func makeBareRepo(tb testing.TB) string {
|
||||
return dir
|
||||
}
|
||||
|
||||
func makeKey(tb testing.TB, algo ...keygen.KeyType) string {
|
||||
func makeKey(tb testing.TB, algo keygen.KeyType) string {
|
||||
tb.Helper()
|
||||
|
||||
if len(algo) == 0 {
|
||||
algo = append(algo, keygen.Ed25519)
|
||||
}
|
||||
dir := tb.TempDir()
|
||||
k, err := keygen.NewWithWrite(dir, "id", nil, algo[0])
|
||||
filepath := filepath.Join(dir, "id")
|
||||
_, err := keygen.NewWithWrite(filepath, nil, algo)
|
||||
require.NoError(tb, err)
|
||||
return filepath.Join(dir, k.Filename)
|
||||
return fmt.Sprintf("%s_%s", filepath, algo)
|
||||
}
|
||||
|
||||
func requireEqualRepoFiles(tb testing.TB, folder, name, url string) {
|
||||
|
||||
Reference in New Issue
Block a user