fix(path): read multi yaml file separated with ---#81
Conversation
Pull Request Test Coverage Report for Build 13682642985Details
💛 - Coveralls |
e28eed8 to
89799d1
Compare
|
@mxcl I would request you to review the PR. |
89799d1 to
4642807
Compare
|
@jhheider, can you pls take a look? I am thinking to spend weekend to fix this in pkgx repo. |
jhheider
left a comment
There was a problem hiding this comment.
this looks reasonable as it goes. two notes:
- this is for pkgx v1; pkgx v2 is pure rust (pkgxdev/pkgx)
- some determination of what should be done with a yaml array needs to be made. the simplest is probably just the read the first one and stop. to what end does skaffold.dev multiple documents in its file?
Now with pkgx v2, we should need it at https://github.com/pkgxdev/dev/blob/main/src/sniff.ts#L263 , isn't it?
Say, if we run |
|
that looks correct. got it. |
|
Thanks @jhheider for reviewing it,pls proceed to merge. |
|
Gentle reminder @jhheider if you missed to merge. |
|
Hey sorry I missed this. Are you still using If for |
No, I've switched to I believe the separate dev tool (sniff.ts#L263) uses libpkgx. If that’s incorrect, could you please point me to the right location to address the multi-YAML Skaffold issue with pkgx^2? |
|
Hi @mxcl @jhheider , I have opened a follow-up PR on dev tool: pkgxdev/dev#38 . Please have a look. |
Currently pkgxdev is failing to autodetect skaffold when skaffold.yaml is having multiple documents with following error:
Once this util function is available to read multi-yaml file, I will raise PR to pkgx.
issue ticket: #82