Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: install shell competions on HEAD #5456

Merged
merged 2 commits into from Oct 29, 2023
Merged

Conversation

hanoii
Copy link
Collaborator

@hanoii hanoii commented Oct 24, 2023

Follow up from

#5438 (comment)

@hanoii hanoii requested a review from a team as a code owner October 24, 2023 20:47
@hanoii
Copy link
Collaborator Author

hanoii commented Oct 24, 2023

@rfay I am a bit confused into what bump-hombrew.sh does and how that it affects goreleaser.

I touched the fish install only to match what's on goreleaser and I wonder if _ddev for zsh should be changed either there on on go releaser (the underscore)? Not sure why it's not the same or if it affects anything.

I did try the make completions (which makes ddev too so no need to run it twice) on my local formula and all worked nice.

@rfay
Copy link
Member

rfay commented Oct 24, 2023

I am a bit confused into what bump-hombrew.sh does and how that it affects goreleaser.

I'm pretty sure that script is obsolete. Shouldn't affect goreleaser, it's pre-goreleaser.

I wonder if _ddev for zsh should be changed either there on on go releaser (the underscore)?

Wasn't able to sort out what you were talking about here, but I seem to remember a PR that wanted _zsh for some reason.

I did try the make completions (which makes ddev too so no need to run it twice) on my local formula and all worked nice.

I didn't realize that completions had build as a dependency, but in my comments I suggested just doing it explicitly. I guess it should be the same.

Copy link
Member

@rfay rfay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestions to make the build more explicit.

.goreleaser.yml Outdated Show resolved Hide resolved
.goreleaser.yml Outdated Show resolved Hide resolved
.ci-scripts/bump_homebrew.sh Show resolved Hide resolved
Co-authored-by: Randy Fay <randy@randyfay.com>
@hanoii
Copy link
Collaborator Author

hanoii commented Oct 25, 2023

Committed your suggestions!

Wasn't able to sort out what you were talking about here, but I seem to remember a PR that wanted _zsh for some reason

I was referring to this (in some places you use underscore in others you don't):

this PR adds more lines without underscore like the ones you have above.

@rfay
Copy link
Member

rfay commented Oct 25, 2023

A little bit of study let me to

However, I don't understand the story. However, on Debian/Ubuntu, I definitely see that all the zsh completions are done with an underscore:

rfay@ub-2204:/usr/share/zsh/vendor-completions$ ls
_bootctl              _localectl                 _systemd-analyze
_busctl               _loginctl                  _systemd-delta
_bwrap                _networkctl                _systemd-inhibit
_curl                 _pulseaudio                _systemd-path
_ddev                 _resolvectl                _systemd-run
_docker               _sd_hosts_or_user_at_host  _systemd-tmpfiles
_dpkg-parsechangelog  _sd_outputmodes            _timedatectl
_hostnamectl          _sd_unit_files             _ubuntu-report
_j                    _snap                      _udevadm
_journalctl           _systemctl
_kernel-install       _systemd

@rfay
Copy link
Member

rfay commented Oct 25, 2023

It looks to me like perhaps the ddev ones are an artifact of how goreleaser deals with zsh completions, because I see the same thing in homebrew:

rfay@rfay-tag1-m1:/opt/homebrew/share/zsh-completions$ ls
_afew			_git-pulls		_play
_android		_git-revise		_pm2
_archlinux-java		_git-wtf		_port
_artisan		_glances		_protoc
_atach			_golang			_pygmentize
_avdmanager		_google			_qmk
_bitcoin-cli		_gpgconf		_rails
_bower			_grpcurl		_ralio
_bundle			_gtk-launch		_redis-cli
_cap			_hello			_rfkill
_cask			_hledger		_rkt
_ccache			_homestead		_rmlint
_cf			_httpie			_rslsync
_choc			_ibus			_rspec
_chromium		_include-what-you-use	_rsvm
_clang-check		_inxi			_rubocop
_clang-format		_jmeter			_sbt
_clang-tidy		_jmeter-plugins		_scala
_cmake			_jonas			_screencapture
_coffee			_jrnl			_scrub
_conan			_kak			_sdd
_concourse		_kitchen		_sdkmanager
_console		_knife			_setcap
_cppcheck		_language_codes		_setup.py
_dad			_lilypond		_sfdx
_dart			_lunchy			_shellcheck
_ddev			_mc			_showoff
_dget			_middleman		_srm
_dhcpcd			_mina			_stack
_diana			_mix			_subliminal
_direnv			_mkcert			_supervisorctl
_docpad			_mssh			_svm
_drush			_mussh			_teamocil
_ecdsautil		_mvn			_thor
_emacs			_nano			_tmuxinator
_emacsclient		_nanoc			_tmuxp
_emulator		_neofetch		_tox
_envdir			_networkQuality		_ts-node
_exportfs		_nftables		_tsc
_fab			_node			_udisksctl
_fail2ban-client	_nvm			_ufw
_ffind			_openssl		_virtualbox
_fleetctl		_openvpn3		_vnstat
_flutter		_optirun		_wemux
_fvm			_patool			_wg-quick
_fwupdmgr		_periscope		_xsel
_gas			_pgsql_utils		_yarn
_ghc			_phing			_zcash-cli
_gist			_pixz
_git-flow		_pkcon

@rfay rfay merged commit 2f4b055 into ddev:master Oct 29, 2023
7 checks passed
@rfay
Copy link
Member

rfay commented Oct 29, 2023

Thanks for this, going with it. We won't know the result until next pre-release or something, but we'll fix then if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants