#feat: compute file digest by TomChv · Pu...

1 messages · Page 1 of 1 (latest)

ivory crest
#

I can't say for sure though, because we haven't added in PHPCS yet. But this is my first guess

unkempt quest
#

Hmm is there an easy way to fix that bug on my PR?

ivory crest
#

one second let me find the right lines.

unkempt quest
#

Thanks!

ivory crest
#

That's IF this is the same issue; if not, sorry for the red herring 😅

unkempt quest
#

Seems more like a formatting issue

#

But I don't see it locally, I'm rerunning the check just to verify, but last time it was good locally

ivory crest
#

Ah! sorry I hadn't looked at the workflow

unkempt quest
#
dagger call -m dev --source=.:default sdk php lint 

Full trace at https://dagger.cloud/Quartz/traces/7220935dbc6e6bad15f817570db60e52

✔ connect 1.1s
✔ initialize 8.0s
✔ prepare 1.2s
✔ daggerDev(
    source: ✔ ModuleSource.resolveDirectoryFromCaller(path: ".", viewName: "default"): Directory! 0.0s
  ): DaggerDev! 0.7s
✔ DaggerDev.sdk: DaggerDevSdk! 0.3s
✔ DaggerDevSdk.php: DaggerDevPhpsdk! 0.0s
✔ DaggerDevPhpsdk.lint: Void 21.5s
#

All good locally, that doesn't make sense

#

No changes when I regenerate the php client 😦

ivory crest
#

Yeah apologies the fix I suggested is not what you need.

#

I'm just looking into it a bit more.

unkempt quest
#

no problem, let me know 😄

#

Got a lot to do on other PR so no rush haha

ivory crest
#

So your problem is that the sdk/php/generated directory has invalid linting on your branch.
Example: https://github.com/TomChv/dagger/blob/3f6f017b92dc3aa6f1be877f431440da764a293a/sdk/php/generated/Client.php#L149-L150

): GitRepository
{

This is what's in the main repository atm:
https://github.com/dagger/dagger/blob/b0d27e15843341643954a4e9ef0841cd785b78b3/sdk/php/generated/Client.php#L149

): GitRepository {

It should be all on one line like in the main repository.

If you remove your changes from:

  • sdk/php/generated/Client
  • sdk/php/generated/Container
  • sdk/php/generated/Directory
  • sdk/php/generated/Function_

That should solve all the linting issues

GitHub

An engine to run your pipelines in containers. Contribute to dagger/dagger development by creating an account on GitHub.

GitHub

A portable devkit for CI/CD pipelines. Contribute to TomChv/dagger development by creating an account on GitHub.

#

It may be that until I get the linting sorted properly, this may be an issue for anyone changing the generated dir.. so I'll try to get it sorted asap

unkempt quest
#

Okay! Thanks!

unkempt quest
#

I added back the generation without the file, to see how it's going