Commit Graph

857 Commits

Author SHA1 Message Date
Felix Schütt
80c05e99e7 Do not publish if namespace = "_" 2022-12-14 19:23:36 +01:00
Felix Schütt
7a0a515ab1 Add proper check to test whether publishing under a namespace will work 2022-12-14 16:37:05 +01:00
Felix Schütt
096063402e Fix append_path_to_tar_gz function 2022-12-14 15:44:17 +01:00
Felix Schütt
5b3eb42348 Factor constructing .tar.gz into separate functions 2022-12-14 15:08:14 +01:00
Felix Schütt
e1ddf53815 Add log::warn 2022-12-14 14:37:29 +01:00
Felix Schütt
27aec54e51 Add log::warn when appending paths to .tar.gz on publish fails 2022-12-14 14:36:35 +01:00
Felix Schütt
1636ca3f26 Refactor add_to_toml step 2022-12-14 14:29:42 +01:00
Felix Schütt
5e800f37a8 Refactor functions 2022-12-14 14:10:41 +01:00
Felix Schütt
61032c102e Fix merge errors 2022-12-14 13:48:11 +01:00
Felix Schütt
a91a9ab3d4 Use Template with clap(ValueEnum) 2022-12-14 13:45:22 +01:00
Felix Schütt
443ed12200 Simplify get_dependencies
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-14 13:36:05 +01:00
Felix Schütt
359f91d7a3 Refactor parsing Cargo.toml in wasmer init 2022-12-14 13:34:17 +01:00
Felix Schütt
590afd1327 Use wai 0.2.0
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-14 13:29:58 +01:00
Felix Schütt
3c099b7df0 Show file name in error message
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-14 13:21:56 +01:00
Felix Schütt
912b14026c Use anyhow::bail
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-14 13:20:04 +01:00
Felix Schütt
9bb8eef189 Use crate-type group 2022-12-14 13:18:57 +01:00
Felix Schütt
c7967666de Fix typo
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-14 13:16:28 +01:00
Felix Schütt
ddeb9f77c6 Fix migration number selection 2022-12-14 13:14:47 +01:00
Felix Schütt
2c7ee61d39 Remove name = "..." on CLI options
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-14 13:09:35 +01:00
Felix Schütt
9553c50a85 Fix integration tests 2022-12-13 15:01:07 +01:00
Felix Schütt
41a54b606b Add validation when publishing + checking the publishing username 2022-12-13 13:26:10 +01:00
Felix Schütt
e4cd6e87d1 Fix make lint 2022-12-13 12:57:22 +01:00
Felix Schütt
60bb15070b Add integration test to make sure that wasmer init + publish works 2022-12-13 12:45:33 +01:00
Christoph Herzog
654ee49226 deps: Use newest webc release (0.4.1) 2022-12-13 11:10:34 +01:00
Christoph Herzog
173e48601c Merge remote-tracking branch 'origin/master' into wasix 2022-12-13 01:40:22 +01:00
Felix Schütt
f6abf5122e Merge branch 'master' into init 2022-12-12 20:46:04 +01:00
Felix Schütt
5e1ee452dc Upgrade to time v3 2022-12-12 20:31:45 +01:00
Felix Schütt
60323484ac Fix merge issues 2022-12-12 14:53:37 +01:00
Felix Schütt
20428fca96 Fix error: metadata.package -> package.metadata 2022-12-12 14:33:49 +01:00
Felix Schütt
3c66829b0d Finish wasmer publish & verify it to work manually 2022-12-12 14:33:49 +01:00
Felix Schütt
445e9382e8 Debug cargo wapm integration not working 2022-12-12 14:33:49 +01:00
Felix Schütt
364d1a445e Port wapm publish to wasmer publish 2022-12-12 14:33:49 +01:00
Felix Schütt
874cb75164 Add uploading function to wasmer-registry 2022-12-12 14:33:49 +01:00
Felix Schütt
b993321409 Add wasmer publish command 2022-12-12 14:33:49 +01:00
Felix Schütt
7fb5ad7d73 Debug why package.metadata.wapm has the wrong format 2022-12-12 14:33:49 +01:00
Felix Schütt
6892965e36 wapm.toml -> wasmer.toml 2022-12-12 14:33:49 +01:00
Felix Schütt
3eaa5850a0 Add debugging to integration test 2022-12-12 14:33:49 +01:00
Felix Schütt
c325ce69f0 Use current logged in user as namespace in wasmer init 2022-12-12 14:33:49 +01:00
Felix Schütt
ac9d392664 Fix relative path in source of module 2022-12-12 14:33:49 +01:00
Felix Schütt
7ba13bc77a Fix make lint 2022-12-12 14:33:49 +01:00
Felix Schütt
c4e1422456 Refactor wasmer init with comments 2022-12-12 14:33:49 +01:00
Felix Schütt
53a08b47ff Update wapm-toml version again 2022-12-12 14:33:49 +01:00
Felix Schütt
e69ea73c29 Update wapm toml version 2022-12-12 14:33:49 +01:00
Felix Schütt
83a4334c7c cargo update 2022-12-12 14:33:49 +01:00
Felix Schütt
bb3de1fd0e cargo fmt 2022-12-12 14:33:49 +01:00
Felix Schütt
507b4f1a7a Correctly recognize .wai bindings 2022-12-12 14:33:49 +01:00
Felix Schütt
a29cc7dede wasmer init: migrate to cargo_metadata 2022-12-12 14:33:49 +01:00
Felix Schütt
73c6387336 Fix wapm init compilation 2022-12-12 14:33:49 +01:00
Felix Schütt
248b2f20f8 Fix make lint 2022-12-12 14:33:49 +01:00
Felix Schütt
e2126b593b Detect cargo wapm and add metadata to Cargo.toml, if applicable 2022-12-12 14:33:49 +01:00