#Module can't be used with HTTPS auth (on Windows) because dependency module has SSH URL

1 messages ยท Page 1 of 1 (latest)

opal geode
#

Am I forced to have the dependency module installed and authenticated via HTTPS, or is there something else I can do to let my Windows colleagues use my module?

fierce mirage
#

what's the error you're currently seeing?

ionic ember
#

Creatign an issue:

fierce mirage
opal geode
#

Yes, thank you. I was aware of the lack of SSH support for Windows. To me the issue here is more that you can only influence the auth method of the first module in the dependency graph (the module you're directly calling). But if the module depends on another and that one does not happen to use the auth method you want, you're out of luck.

ionic ember
#

oooh, just saw the title, that's a good one

#

Is the dependency public or private and requires SSH auth ? Why not making the whole graph https in your use-case ?

#

But this raises a good point, to which I have no easy solution atm. Could you please make an issue out of that ?

#

My first intuition is:

  1. this happens mostly with private modules being dependencies
  2. if it breaks with a public dependency, on windows, using the ssh formatted ref, then it's definitely a bug
  3. There's no easy solution ... ? ๐Ÿค”
fierce mirage
#

in a private organization where you control how to authenticate against the different private modules, there should be some sort of pattern on which auth method to use

opal geode
opal geode
opal geode
fierce mirage
# opal geode Yeah this is true, and a good point. Git however does provide you with ways to w...

yeah true, having said that, I recall we have some logic for insteadOf in our git logic here: https://github.com/dagger/dagger/blob/997d9f7def31513953476de13b165f362d6a40dc/engine/session/git/git.go?plain=1#L162.

Not entirely sure if that's also used for module dep resolution. Would have to check that. Do you know @ionic ember ?

GitHub

An open-source runtime for composable workflows. Great for AI agents and CI/CD. - dagger/dagger

fierce mirage
#

@opal geode would you like to create an issue?

opal geode