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

Resolve api_key_vault_cmd like wakatime-cli does #386

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

kisaragi-hiu
Copy link
Contributor

@kisaragi-hiu kisaragi-hiu commented Apr 9, 2024

This package was treating the entire config value of api_key_vault_cmd as one executable name, rather than treating it as a shell command --- but it also probably shouldn't treat it as a shell command, as wakatime-cli doesn't do that either.

wakatime-cli instead treats the value as a space-separated list of the executable and its arguments:

https://github.com/wakatime/wakatime-cli/blob/1fd560a/cmd/params/params.go#L707-L719

This PR makes vscode-wakatime mimick that behavior.

This should fix #387.

@gandarez
Copy link
Member

gandarez commented Apr 9, 2024

It looks good to me, wdyt @alanhamlett?

@gandarez gandarez added the bug label Apr 9, 2024
@alanhamlett alanhamlett merged commit 93dc02c into wakatime:master Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

api_key_vault_cmd configuration option for shell command to get api key from vault fails with ENOENT
3 participants