fix(fish): honor GO_TASK_PROGNAME for experiments cache#2730
fix(fish): honor GO_TASK_PROGNAME for experiments cache#2730vmaerten merged 2 commits intogo-task:mainfrom
Conversation
trulede
left a comment
There was a problem hiding this comment.
Fix seems OK.
I'm not familiar with fish and can't verify.
|
I did face the same issue today and have already tried the fix as it is proposed in this PR. The are situations where the If you add the |
trulede
left a comment
There was a problem hiding this comment.
Would you check if the suggested changes are viable/working:
function __go_task_get_experiments --inherit-variable GO_TASK_PROGNAME
[...]
# Refresh cache
set -g __go_task_experiments_cache ($GO_TASK_PROGNAME --experiments 2>/dev/null)
[...]
end
|
Thanks for the repro details and suggestion — I pushed an update to this PR. What changed
Validation
If you want, I can also add |
|
Thanks for the concrete fish-shell suggestion ( I’ll incorporate that approach and push an update. |
Co-authored-by: libor-m <1497769+libor-m@users.noreply.github.com>
Co-authored-by: libor-m <1497769+libor-m@users.noreply.github.com>
Summary
$GO_TASK_PROGNAMEinstead of hardcodedtaskwhen refreshing fish completion experiment cachego-tasktaskinstallsTesting
git diff --checkgo test ./...(not runnable in this environment: required Go toolchaingo1.25is unavailable viaGOTOOLCHAINdownload)Related