profile
viewpoint

Ask questionsTesting a dependency within CI

I'm trying to set up testing for a dependency (see https://github.com/sublimelsp/lsp_utils/pull/70) within a Github Actions.

There are some problems with that.

By default the CI script bootstraps Package Control with ignore_vcs_packages set to true. Having that option enabled with a cloned dependency in Packages results in PC showing an error dialog:

Screenshot 2021-06-19 at 21 43 57

and UnitTesting script failing the install_package_control step with:

Skipping git package lsp_utils since the setting "ignore_vcs_packages" is set to true
missing dependencies:
lsp_utils
Timeout: Fail to install Package Control.
Error: Process completed with exit code 1.

source: https://github.com/sublimelsp/lsp_utils/runs/2865424911

With ignore_vcs_packages set to false it also errors out with:

Error executing: /usr/bin/git symbolic-ref -q HEAD
Working directory: /github/home/.config/sublime-text/Packages/lsp_utils
VCS-based packages can be ignored by changing the "ignore_vcs_packages" setting to true.
Sublime Text will need to be restarted once the setting is changed.
missing dependencies:
lsp_utils
Timeout: Fail to install Package Control.
Error: Process completed with exit code 1.

source: https://github.com/sublimelsp/lsp_utils/runs/2865746622

I'm looking for some ideas on how to handle this.

SublimeText/UnitTesting

Answer questions rchl

One, not that clean, solution that just came to my mind is:

  • run github.sh install_package LSP-pyright master https://github.com/sublimelsp/LSP-pyright.git to install a package that requires lsp_utils
  • run github.sh install_package_control to let PC install the lsp_utils dependency
  • in the next CI step, manually delete the installed dependency and then add my local version
useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List