#chore(sdk/php): use DefaultPath to SDK s...

1 messages · Page 1 of 1 (latest)

near haven
#

Thank you, LGTM!

I wanted to do this recently but we had to add that Container argument during this PR.

I am curious if, since the PhpSdkDev got unpinned do we actually need this argument anymore?

cc @silver flicker hopefully not too much of a bother, I'd just like to pinch your sagely dagger wisdom on this one 🙏

GitHub

We were pinned to an old version of the php sdk that didn't have the proper OTEL work that allowed us to actually observe errors happening.
By unpinning it, we'll always get the sam...

GitHub

This adds expanding environment variables in WithNewFile. ref: #7951. If this looks OK, I will add similar changes to other API's in this same PR.

#

Actually there's even one weird edge case that is guaranteed to confuse people if we have both arguments:

If someone passes a Source directory and also they pass a Container. The outcome will be that Source is completely ignored and only the Container will be used.

near haven
#

This edge case could occur right now, still. So it doesn't block this PR.

I just noticed it now though and if we could solve it, that would be nice

keen zinc
#

If someone passes a Source directory and also they pass a Container. The outcome will be that Source is completely ignored and only the Container will be used.
Oh, would it be Test function that can trigger this issue? It use phpBase from the root dagger module and pass it to the dev module.

silver flicker
#

So, the *Container is the dev version of the engine that has been created

#

However, when unpinning, that just matches the version of the engine that runs the tests

#

So suppose I'm running PHP tests on main using dagger v0.15.2. Then I want to test against main engine not v0.15.2 engine

near haven
#

Right I see. So to clarify, do all other SDKs also have a way to pass in the *Container?

silver flicker
#

yup, all the dev sdks do

#

eventually we'll remove it from all of them - and they'll just be able to access it by installing an engine dependency

#

but there's some work to get there

near haven
#

That's fair enough, I'll try to keep an eye out for when we can do that 👀

near haven
silver flicker
#

wooo thanks ❤️