pastydev / homebrew-cmdict

Homebrew tap for cmdict, a command-line dictionary toolset.
https://github.com/pasty-dev/cmdict
MIT License
0 stars 0 forks source link

Test `cmdict download` failed the built process #8

Closed jiedxu closed 2 years ago

jiedxu commented 2 years ago

See https://github.com/edxu96/homebrew-cmdict/runs/5806374733?check_suite_focus=true :

Warning: test failed
  ==> Testing edxu96/cmdict/cmdict
  ==> /usr/local/Cellar/cmdict/0.1.2/bin/cmdict download
  Traceback (most recent call last):
    File "/usr/local/Cellar/cmdict/0.1.2/bin/cmdict", line 8, in <module>
      sys.exit(run_script.cli())
    File "/usr/local/Cellar/cmdict/0.1.2/libexec/lib/python3.8/site-packages/click/core.py", line 829, in __call__
      return self.main(*args, **kwargs)
    File "/usr/local/Cellar/cmdict/0.1.2/libexec/lib/python3.8/site-packages/click/core.py", line 782, in main
      rv = self.invoke(ctx)
    File "/usr/local/Cellar/cmdict/0.1.2/libexec/lib/python3.8/site-packages/click/core.py", line 12[59](https://github.com/edxu96/homebrew-cmdict/runs/5806374733?check_suite_focus=true#step:8:59), in invoke
      return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "/usr/local/Cellar/cmdict/0.1.2/libexec/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
      return ctx.invoke(self.callback, **ctx.params)
    File "/usr/local/Cellar/cmdict/0.1.2/libexec/lib/python3.8/site-packages/click/core.py", line [61](https://github.com/edxu96/homebrew-cmdict/runs/5806374733?check_suite_focus=true#step:8:61)0, in invoke
      return callback(*args, **kwargs)
    File "/usr/local/Cellar/cmdict/0.1.2/libexec/lib/python3.8/site-packages/cmdict/run_script.py", line 38, in download
      data_dir_path.mkdir(parents=True)
    File "/usr/local/Cellar/python@3.8/3.8.13/Frameworks/Python.framework/Versions/3.8/lib/python3.8/pathlib.py", line 1288, in mkdir
      self._accessor.mkdir(self, mode)
  PermissionError: [Errno 1] Operation not permitted: '/usr/local/Cellar/cmdict/0.1.2/libexec/lib/python3.8/site-packages/cmdict/data'
  Error: edxu96/cmdict/cmdict: failed