shellcheck icon indicating copy to clipboard operation
shellcheck copied to clipboard

snap の shellcheck で `Permission denied` のエラー

Open qq542vev opened this issue 2 years ago • 1 comments

For bugs

  • Rule Id (if any, e.g. SC1000):
  • My shellcheck version (shellcheck --version or "online"): snap version
  • [x] The rule's wiki page does not already cover this (e.g. https://shellcheck.net/wiki/SC2086)
  • [x] I tried on https://www.shellcheck.net/ and verified that this is still a problem on the latest commit

For new checks and feature suggestions

  • [x] https://www.shellcheck.net/ (i.e. the latest commit) currently gives no useful warnings about this
  • [x] I searched through https://github.com/koalaman/shellcheck/issues and didn't find anything related

Here's a snippet or screenshot that shows the problem:

以下のコマンドで snap から shellcheck をインストールしました。 I installed shellcheck from snap with the following command.

sudo snap install --channel=edge shellcheck

しかし、shellcheck は起動出来ませんでした。 shell ファイルのチェックや、バージョンの確認も出来ません。 However, shellcheck could not be started. You cannot check the shell file or check the version.

shellcheck -V
cannot open directory /tmp/snap.1000_shellcheck_XXXXXX: Permission denied

このエラーは当方の環境によるものでしょうか。それとも Bug でしょうか。 Is this error due to my environment? Or is it a bug?

当方の環境は以下のようになります。 Our environment is as follows.

$ cat /etc/debian_version
10.11
$ dpkg -l | grep snapd
ii  snapd                                 2.37.4-1+deb10u1                    amd64        Daemon and tooling that enable snap packages

当方は英語が話せないため、日本語で投稿致しました。申し訳ございません。 I can't speak English, so I posted it in Japanese. I'm sorry. (<3)

Here's what shellcheck currently says:

Here's what I wanted or expected to see:

qq542vev avatar Mar 18 '22 00:03 qq542vev

Used Google translate to add English as support. Hopefully correct, it does make sense at least.

Google翻訳を使用して、サポートとして英語を追加しました。 うまくいけば、それは少なくとも理にかなっています。

brother avatar Mar 18 '22 08:03 brother