From d07d82e86e4346499b8d4902fcba0ae12d5251a9 Mon Sep 17 00:00:00 2001 From: kuyacarlo <106532351+kuyacarlo@users.noreply.github.com> Date: Sun, 16 Aug 2026 07:25:27 +0800 Subject: [PATCH] chore: align module path and packaging with renamed repo The GitHub repo was renamed kuyacarlo/ssh-profiles to kuyacarlo/ssh-profile. Align the Go module path, import paths, and packaging references so the repository and module match, avoiding go install breakage from the old redirected name. - go.mod: module path github.com/kuyacarlo/ssh-profile - import paths under cmd/, internal/, main.go updated to the new prefix - Makefile PKG - install.sh REPO - .goreleaser.yaml homepage - packaging/copr/git-ssh.spec URL and %autosetup dir name (ssh-profiles-%{version} -> ssh-profile-%{version}; renamed repo serves the tarball as ssh-profile-, the old value breaks the SRPM build) Binary name stays git-ssh. Closes #3 Signed-off-by: kuyacarlo <106532351+kuyacarlo@users.noreply.github.com> --- .goreleaser.yaml | 2 +- Makefile | 2 +- cmd/clone.go | 4 ++-- cmd/export_import.go | 2 +- cmd/root.go | 14 +++++++------- go.mod | 2 +- install.sh | 2 +- internal/apply/apply.go | 8 ++++---- internal/apply/apply_test.go | 2 +- internal/include/include.go | 4 ++-- internal/include/include_test.go | 2 +- main.go | 2 +- packaging/copr/git-ssh.spec | 4 ++-- 13 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b419575..4fc2d06 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -36,7 +36,7 @@ nfpms: - id: git-ssh package_name: git-ssh vendor: The git-ssh Authors - homepage: https://github.com/kuyacarlo/ssh-profiles + homepage: https://github.com/kuyacarlo/ssh-profile maintainer: kuyacarlo description: Per-repo SSH identity profiles for GitHub (Orca-safe) license: MIT diff --git a/Makefile b/Makefile index 62182e3..5b2e307 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ GOBIN ?= $(shell go env GOPATH)/bin -PKG = github.com/ssh-profiles/git-ssh +PKG = github.com/kuyacarlo/ssh-profile BIN := git-ssh VERSION := 0.1.0 diff --git a/cmd/clone.go b/cmd/clone.go index 4993070..2977b46 100644 --- a/cmd/clone.go +++ b/cmd/clone.go @@ -7,8 +7,8 @@ import ( "path/filepath" "strings" - "github.com/ssh-profiles/git-ssh/internal/apply" - "github.com/ssh-profiles/git-ssh/internal/remoteurl" + "github.com/kuyacarlo/ssh-profile/internal/apply" + "github.com/kuyacarlo/ssh-profile/internal/remoteurl" "github.com/spf13/cobra" ) diff --git a/cmd/export_import.go b/cmd/export_import.go index 7207cf4..f59623e 100644 --- a/cmd/export_import.go +++ b/cmd/export_import.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/ssh-profiles/git-ssh/internal/config" + "github.com/kuyacarlo/ssh-profile/internal/config" "github.com/spf13/cobra" ) diff --git a/cmd/root.go b/cmd/root.go index db14393..4e8e1a2 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -6,13 +6,13 @@ import ( "sort" "strings" - "github.com/ssh-profiles/git-ssh/internal/apply" - "github.com/ssh-profiles/git-ssh/internal/config" - "github.com/ssh-profiles/git-ssh/internal/git" - "github.com/ssh-profiles/git-ssh/internal/include" - "github.com/ssh-profiles/git-ssh/internal/keys" - "github.com/ssh-profiles/git-ssh/internal/remoteurl" - "github.com/ssh-profiles/git-ssh/internal/ui" + "github.com/kuyacarlo/ssh-profile/internal/apply" + "github.com/kuyacarlo/ssh-profile/internal/config" + "github.com/kuyacarlo/ssh-profile/internal/git" + "github.com/kuyacarlo/ssh-profile/internal/include" + "github.com/kuyacarlo/ssh-profile/internal/keys" + "github.com/kuyacarlo/ssh-profile/internal/remoteurl" + "github.com/kuyacarlo/ssh-profile/internal/ui" "github.com/spf13/cobra" ) diff --git a/go.mod b/go.mod index b5c45cb..3118a50 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/ssh-profiles/git-ssh +module github.com/kuyacarlo/ssh-profile go 1.26 diff --git a/install.sh b/install.sh index 057616f..dd75dc8 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -REPO="kuyacarlo/ssh-profiles" +REPO="kuyacarlo/ssh-profile" BIN="git-ssh" DEST="${DEST:-/usr/local/bin}" diff --git a/internal/apply/apply.go b/internal/apply/apply.go index 473cc7a..d2c3552 100644 --- a/internal/apply/apply.go +++ b/internal/apply/apply.go @@ -4,10 +4,10 @@ import ( "fmt" "strings" - "github.com/ssh-profiles/git-ssh/internal/config" - "github.com/ssh-profiles/git-ssh/internal/file" - "github.com/ssh-profiles/git-ssh/internal/remoteurl" - "github.com/ssh-profiles/git-ssh/internal/sshconfig" + "github.com/kuyacarlo/ssh-profile/internal/config" + "github.com/kuyacarlo/ssh-profile/internal/file" + "github.com/kuyacarlo/ssh-profile/internal/remoteurl" + "github.com/kuyacarlo/ssh-profile/internal/sshconfig" ) const ( diff --git a/internal/apply/apply_test.go b/internal/apply/apply_test.go index 7b9b641..442b6bc 100644 --- a/internal/apply/apply_test.go +++ b/internal/apply/apply_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/ssh-profiles/git-ssh/internal/config" + "github.com/kuyacarlo/ssh-profile/internal/config" "github.com/matryer/is" ) diff --git a/internal/include/include.go b/internal/include/include.go index 1d05106..f80dc1e 100644 --- a/internal/include/include.go +++ b/internal/include/include.go @@ -7,8 +7,8 @@ import ( "strings" "github.com/adrg/xdg" - "github.com/ssh-profiles/git-ssh/internal/config" - "github.com/ssh-profiles/git-ssh/internal/file" + "github.com/kuyacarlo/ssh-profile/internal/config" + "github.com/kuyacarlo/ssh-profile/internal/file" ) const ( diff --git a/internal/include/include_test.go b/internal/include/include_test.go index 0021886..5a8c60c 100644 --- a/internal/include/include_test.go +++ b/internal/include/include_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/adrg/xdg" - "github.com/ssh-profiles/git-ssh/internal/config" + "github.com/kuyacarlo/ssh-profile/internal/config" "github.com/matryer/is" ) diff --git a/main.go b/main.go index f6e09cf..113300a 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/ssh-profiles/git-ssh/cmd" + "github.com/kuyacarlo/ssh-profile/cmd" ) // Set by -ldflags at build time. diff --git a/packaging/copr/git-ssh.spec b/packaging/copr/git-ssh.spec index 22c09e9..4993626 100644 --- a/packaging/copr/git-ssh.spec +++ b/packaging/copr/git-ssh.spec @@ -6,7 +6,7 @@ Release: 1%{?dist} Summary: Per-repo SSH identity profiles for GitHub (Orca-safe) License: MIT -URL: https://github.com/kuyacarlo/ssh-profiles +URL: https://github.com/kuyacarlo/ssh-profile Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: golang @@ -17,7 +17,7 @@ on ~/.ssh/config Host aliases, so it stays compatible with tools (like Orca) that need a stable, unaliased origin URL. %prep -%autosetup -n ssh-profiles-%{version} +%autosetup -n ssh-profile-%{version} %build export CGO_ENABLED=0