Skip to content

Commit d855031

Browse files
hcannoodtRobrecht Cannoodt
andauthored
Add support for overriding host resolving. (#854) (#856)
* Add support for overriding host resolving. * Update CHANGELOG.md * change env variable name --------- Co-authored-by: Robrecht Cannoodt <robrecht@data-intuitive.com>
1 parent 73e5f4e commit d855031

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

CHANGELOGS/CHANGELOG_0.9.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Viash 0.9.5 (2025-10-06): Hotfix for internal CI usage
2+
3+
This is a hotfix release to support internal CI usage and testing.
4+
There is no functionality change for regular users.
5+
6+
## MINOR CHANGES
7+
8+
* `Vsh repository`: Add support for overriding host resolving (PR #854). This is meant for internal usage and testing and will be replaced in the near future.
9+
10+
## BUG FIXES
11+
12+
* `Dependencies`: Fix an issue where deeply nested dependencies are not resolvable if they require a local dependency (PR #838).
13+
This solves a build issue, some issues still remain with running components with such dependencies.
14+
115
# Viash 0.9.4 (2025-04-24): Hotfix for Nextflow edge
216

317
This is a hotfix release for the changes in Nextflow edge's handling of double arguments.

src/main/scala/io/viash/config/dependencies/ViashhubRepositoryTrait.scala

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,14 @@ trait ViashhubRepositoryTrait extends AbstractGitRepository {
4747
def getCacheIdentifier(): Option[String] =
4848
Some(s"viashhub-${fullRepo.replace("/", "-")}${tag.map(_.prepended('-')).getOrElse("")}")
4949

50-
val uri = s"https://packages.viash-hub.com/$fullRepo.git"
51-
lazy val uri_ssh = s"git@packages.viash-hub.com:$fullRepo.git"
50+
// TODO: replace by using anc
51+
val server = sys.env.getOrElse("VIASH_HUB_HOST", "packages.viash-hub.com")
52+
assert(server.matches("^[\\w\\.\\-\\/]*$"), s"VIASH_HUB_HOST should not contain protocol or user information, got: $server")
53+
54+
val uri = s"https://$server/$fullRepo.git"
55+
lazy val uri_ssh = s"git@$server:$fullRepo.git"
5256
val fakeCredentials = "nouser:nopass@" // obfuscate the credentials a bit so we don't trigger GitGuardian
53-
lazy val uri_nouser = s"https://${fakeCredentials}packages.viash-hub.com/$fullRepo.git"
57+
lazy val uri_nouser = s"https://${fakeCredentials}$server/$fullRepo.git"
5458

5559
val storePath = fullRepo // no need to add 'viash-hub.com' to the store path as 'type' (vsh) will be added
5660
}

0 commit comments

Comments
 (0)