Commit Graph

509 Commits

Author SHA1 Message Date
Felix Schütt
adafb28f64 Add warning when initializing a wasmer.toml file from a Cargo.toml 2022-12-17 00:05:01 +01:00
Felix Schütt
46a2d28f30 Remove client-side validation when uploading package 2022-12-16 23:56:22 +01:00
Felix Schütt
e1c42b5f90 Revert "Revert "Implement wasmer init and wasmer publish""
This reverts commit 250ebff4e8.
2022-12-16 23:40:17 +01:00
Syrus Akbary
250ebff4e8 Revert "Implement wasmer init and wasmer publish" 2022-12-16 14:09:55 -08:00
Felix Schütt
a4a997c7cf Fix wasmer-wasm-interface version 2022-12-16 18:50:27 +01:00
Felix Schütt
d1093ca821 Fix make lint 2022-12-16 12:21:44 +01:00
Felix Schütt
ad5b9f2595 Fix --package-name on wasmer init 2022-12-16 12:04:18 +01:00
Felix Schütt
c1966702e2 Add check to validate the package name 2022-12-16 11:43:35 +01:00
Felix Schütt
ee3902fa4a Do not add a namespace when user is not logged in 2022-12-16 10:43:26 +01:00
Felix Schütt
f9a70c5b51 Avoid packagename/packagename when running wasmer init 2022-12-16 10:22:28 +01:00
Felix Schütt
1727d1534c Remove cargo wapm code 2022-12-16 10:19:58 +01:00
Felix Schütt
671e1bccb7 Fix make lint 2022-12-15 23:05:38 +01:00
Felix Schütt
c31587c339 Remove code to check for user / namespace consistency 2022-12-15 22:41:10 +01:00
Felix Schütt
d83190919a Output warning on multiple .wit / .wai files 2022-12-15 14:21:40 +01:00
Felix Schütt
a2b39503ba Fix make lint 2022-12-15 14:01:03 +01:00
Felix Schütt
de9cefe7df Rework namespace formatting 2022-12-15 13:42:19 +01:00
Felix Schütt
88ee645e6a Fix copy-paste bug
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-15 12:32:16 +01:00
Michael-F-Bryan
8788dac9ef Mention the filename when a fs operation fails 2022-12-15 16:38:33 +08:00
Michael-F-Bryan
a45af93774 Make sure we only add "\r" characters on Windows 2022-12-15 15:51:39 +08:00
Michael-F-Bryan
3da744bf1c Mark template as a value_enum 2022-12-15 15:44:17 +08:00
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
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