Closed WillBeebe closed 2 years ago
What would be nice on publish would be to use the allowlist of files (yaml, schemas, step dirs) and validate that those are in the bundle and fail if they are not.
I wouldn't add it to this branch unless that's a super quick change as I'd like to get this merged pronto. FF to add a ticket for the above if its not a fast one.
@jaketf and @coryodaniel this is ready to go. The test is now sane and I ran through the CLI locally publishing a bundle to my private org.
Issue:
When I moved from my recursive copy method to using filepath.Walk I introduced a bug.
filepath.Walk
behaves differently when copying from local root vs non-local root.Because this behaves differently for local, the tests didn't catch it.
This wasn't fun: Write code -> test with bundle -> write test -> rewrite code -> tests pass -> declare victory -> accept defeat.
So I tried this: Write test that captures the bug -> fix code -> test with bundle
Here's a run with the new test and without the changes (test fails).
New test, with the changes