#Mark can't upgrade to 0.9.9 (part 1)
1 messages ยท Page 1 of 1 (latest)
So, if I look at archivist, you want to know how to depend on arc, right?
{
"name": "archivist",
"sdk": "go",
"dependencies": [
{
"name": "arc",
"source": "../arc"
}
],
"source": ".",
"engineVersion": "v0.9.9"
}
Correct. Locally it works, but it fails to install.
Got it. If you git clone... and from archivist/ run dagger call... it works, but you can't go create a new module and dagger install github.com/sagikazarmark/daggerverse/archivist, right? ( trying that right now)
yes
And it doesn't make sense for arc to be a standalone module, right?
Error: failed to generate code: input: resolve: moduleSource: withDependencies: resolveFromCaller: asModule: failed to create module: failed to update module dependencies: failed to initialize dependency modules: failed to initialize dependency module: failed to create module: failed to update module dependencies: failed to load module dependencies: failed to load pre-configured dependencies: failed to resolve dependency: module dep source path "/arc" escapes root
What do you mean? As far as I can tell, it is a standalone module
Arc is what I consider a "low-level" module that wraps a specific tool. Archivist is a "high-level" module implementing some logic (archiving files in this case), but arc is an implementation detail.
Could you try
"dependencies": [
{
"name": "arc",
"source": "github.com/sagikazarkmark/daggerverse/arc"
}
],
instead of
"dependencies": [
{
"name": "arc",
"source": "../arc"
}
],
Sure, I suppose that would work as a temporary workaround. But is that how it's supposed to work?
I mean, referencing local modules used to work before.
I think it might work if the local module was within or below the directory level of the parent module...
I doubt most people implement their daggerverse repo that way though
I noticed I deleted dagger.json from the repo root (not sure if it was accidental). Could that be a problem?
๐ mentions https://github.com/dagger/dagger/pull/6086
These are all from last November though, way before 0.9.8 and 0.9.9. Before moving to 0.9.9, this worked.
yep. tracing the changes
It even worked with 0.9.8 with the root-for hack. So this must be a very recent change (within a week or two)
related to error message above: #1206330778636652605 message
module dep source path "/arc" escapes root:
https://github.com/dagger/dagger/blob/main/core/schema/modulesource.go#L465-L473
failed to resolve dependency
https://github.com/dagger/dagger/blob/main/core/schema/modulesource.go#L311
https://github.com/dagger/dagger/blob/main/core/schema/modulesource.go#L349
This seems to work: https://github.com/sagikazarmark/daggerverse/pull/49
sorry about this @pure jewel . Yes local dependencies are supposed to work with .. in the path also . As long as it's the same git repo.
checked discord while Alice was out w/ friends and I was sitting around doing nothing, saw this and realized it's just a dumb bug specific to the case of installing a git module that itself has local relative deps, so fixed it quick: https://github.com/dagger/dagger/pull/6645
Sorry about the hassle here, the integ tests cover installing deps pretty thoroughly but didn't have coverage of installing git modules yet (https://github.com/dagger/dagger/issues/6623) which was important for this bug to trigger. That PR adds a stopgap test though that just uses your daggerverse repo Mark (pinned to a commit), just to hold us over until we've setup our own repo.
(re-entering vacation mode now
will need someone else to approve and merge PR)
Thank you Erik!
@steel mountain @fathom topaz @teal field I think we're going to need to get this ๐ in a patch release... we're supposed to call for more testers monday morning pacific time, but without this fix, it might stop testers in their tracks. I'll check in in the morning, we can make a go/no-go call. Option 1 we move forward either with the plan Monday. Option 2 we push back 24h.
And thank you very much Mark for the testing ๐ very appreciated
imo, if this is a blocker, we should cut v0.9.10 asap
we shouldn't push back 24h if we don't plan to cut a release before then
Thank you Erik ๐ช
It's reasonable to move 0.9.10 sooner than initially planned and get the fix out. There are a few other things which we could get in too: https://github.com/dagger/dagger/milestone/35 . @fathom topaz is on top of it ๐ #1206562345892057179 message (private thread)
@pure jewel if you have a minute, can you please check that this fixes your issue? https://github.com/dagger/dagger/pull/6645#issuecomment-1937955132
@ashen mulch your โ would make the merge even more comfortable: https://github.com/dagger/dagger/pull/6645#discussion_r1486012753
Lemme check
Is this how I run a dev version of Dagger?
Yes, ./hack/dev ... AFAIK. Are you doing the same @fathom topaz ?
there's some more instructions here: https://github.com/dagger/dagger/blob/main/CONTRIBUTING.md#how-to-run-a-development-engine
Looks like it works