You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suggested command for creating an extension when an extension doesn't have a binary for the current architecture creates an unclear, blank issue #9600
returnfmt.Errorf("could not check for binary extension: %w", err)
}
}
ifisBin {
returnm.installBin(repo, target)
}
hs, err:=hasScript(m.client, repo)
iferr!=nil {
returnerr
}
if!hs {
returnerrors.New("extension is not installable: missing executable")
}
returnm.installGit(repo, target)
}
$ gh ext install andyfeller/gh-doesnotexist
X Could not find extension 'andyfeller/gh-doesnotexist' on host github.com
The only other scenario being an error with the build process that fails to upload the specific OS + architecture, but realizing that likely warrants asking the extension author to do something regardless.
What might this look like? 🤔
Whatever we output, we should ensure it works for Mac / Windows / Linux users; meaning we probably can't use fancy tricks like sh-style heredocs to generate issue body in an elaborate way:
Activity
timrogers commentedon Sep 11, 2024
I'm willing to pick up this change, if the maintainers are happy to accept it 😊
andyfeller commentedon Sep 11, 2024
Thanks for raising this concern, @timrogers, definitely an opportunity to improve extension authors and users interactions!
At first, I was wondering whether there were other situations we could land in this such as the repo not existing, however I see we have that covered:
cli/pkg/cmd/extension/manager.go
Lines 212 to 238 in 3cbaffe
$ gh ext install andyfeller/gh-doesnotexist X Could not find extension 'andyfeller/gh-doesnotexist' on host github.comThe only other scenario being an error with the build process that fails to upload the specific OS + architecture, but realizing that likely warrants asking the extension author to do something regardless.
What might this look like? 🤔
Whatever we output, we should ensure it works for Mac / Windows / Linux users; meaning we probably can't use fancy tricks like
sh-style heredocs to generate issue body in an elaborate way:For example,
cli/clitriage workflow:Ideally this wouldn't be super verbose command for the user to run
With all of that said, I think this makes sense and can hold off further feedback for a PR.