Unanswered
Hello Everyone, How Do I Tell The Agent That It Needs To Install A Local Module Of The Repo?
If I Put Git+<Repopath> In The Requirements It Will Install The Module Version In The Repo And Not Necessarily The Version That Launched The Task. I Basically Wan
ok, yes I mean the branch im working on. I can assume I;ve pushed it. So ill be using something like
def get_package_url() -> str: repo = Repo(Path(__file__).parent) branch_name = repo.active_branch.name remote_url = repo.remote().url return f"git+ssh://{remote_url.replace(':', '/')}@{branch_name}"
andTask.add_requirements("my_package", "@ {get_package_url()}")
185 Views
0
Answers
2 years ago
one year ago