wasmCloud / wash

WAsmcloud SHell - the comprehensive command-line tool for wasmCloud development
https://wasmcloud.com
Apache License 2.0
148 stars 58 forks source link

[FEATURE] wash app `put` & `deploy` should support other forms of manifest input (REDO, supersedes #851) #875

Closed ahmedtadde closed 10 months ago

ahmedtadde commented 11 months ago

Feature or Problem

The current implementations for put model and deploy model only support a manifest sourced from the local filesystem.

Related Issues

624

Release Information

v0.20.2

Consumer Impact

More options for manifest sources for the put and deploy commands.

Testing

Built on platform(s)

Tested on platform(s)

Unit Test(s)

Manual Verification

ahmedtadde commented 10 months ago

@connorsmith256 I made some changes to make load_app_manifest easy to unit test...at lease relative to the whole integration testing setup i originally worked on.

connorsmith256 commented 10 months ago

@ahmedtadde Sounds good! I was about to push up a fork of your branch with the integration stuff closer to working 😅 but I much prefer the unit tests you added. They're much less fragile and easier to see what we're testing, compared to integration tests 👍

connorsmith256 commented 10 months ago

@ahmedtadde ICYMI, the unit tests failed, but just for Windows: https://github.com/wasmCloud/wash/actions/runs/6510020163/job/17685606053?pr=875

I think C:\\..... parses as a URL. As will file://..... on linux/macos. So you might need to swap the case order to check if it's a valid file first?

ahmedtadde commented 10 months ago

@ahmedtadde ICYMI, the unit tests failed, but just for Windows: https://github.com/wasmCloud/wash/actions/runs/6510020163/job/17685606053?pr=875

I think C:\\..... parses as a URL. As will file://..... on linux/macos. So you might need to swap the case order to check if it's a valid file first?

pushed a fix; fingers crossed