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

For context, when doing the same in a local, clean ST build, I'm getting the same message and what I need to do to get that dependency registered in the loader is I have to manually trigger Package Control: Install Local Dependency from the Command Palette and select lsp_utils.

So I'm trying to figure out if there is some solution to that without involving any changes in PC itself since that would take a very long time, even if accepted.

useful!

Related questions

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