Giter Site home page Giter Site logo

Testing a dependency within CI about unittesting HOT 7 CLOSED

rchl avatar rchl commented on August 26, 2024
Testing a dependency within CI

from unittesting.

Comments (7)

rchl avatar rchl commented on August 26, 2024

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.

from unittesting.

rchl avatar rchl commented on August 26, 2024

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

from unittesting.

randy3k avatar randy3k commented on August 26, 2024

One solution is to remove the .git subdirectory of the repo. I remember I have to do it for one particular instance.

from unittesting.

rchl avatar rchl commented on August 26, 2024

If I do that then PC will overwrite the dependency directory with the latest released version instead of the one I want to test.

from unittesting.

rchl avatar rchl commented on August 26, 2024

My idea above seems to have worked (see sublimelsp/lsp_utils@759e975).

Obviously it's very hacky though and I would want to avoid referencing the Packages path in the CI workflow and rely completely on the original script...

from unittesting.

randy3k avatar randy3k commented on August 26, 2024

I thing we could add a flag to the bootstrap command so that the current repo is not copied to ST https://github.com/SublimeText/UnitTesting/blob/master/sbin/ci.sh#L29
And extract this part as a separate function which could then be called later to replace the installed dependency.

from unittesting.

rchl avatar rchl commented on August 26, 2024

Yeah, that should work. Was hoping we could find some alternative angle at this issue that I couldn't think of. :)

from unittesting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.