Commit 78bddcc
authored
Fix
* Removed openssl installation
The openssl installation was breaking `now dev` on any environment
that isn't using `yum` as package manager. It seems sensible to remove
it and instead projects that require it can add it (along with package
management logic) into `build.sh`.
* Require main function in entrypoints
The replacement logic was breaking `now dev` as it was adding imports
and the main function each time `now dev` was run. To mitigate this, the
entrypoints now require the main function.
* Debugging matches official builders
Other builders are using @now/build-utils `debug` function to log debug
messages. It is hidden behind NOW_BUILD_DEBUG environment variable, so I
have also matched that behaviour for cargo verbosity. Without enabling,
cargo is now less verbose, however still shows compilation errors.
* Now only support version 3 of runtimes
* Added support for path segments
rustc does not support `[]` in crate names, hence cargo was failing to
build path segments. Replacing brackets with underscores for naming
fixes the issue.
* Check if rust exists before trying to install
This shaves off time as the installer no longer needs to download rustup
and try to install. Instead it checks before downloading.
* Cargo.toml handling is more flexible
In order to allow usage of helper libraries across all folders Cargo
allows specifying them via [lib]. This was removed on each build,
previously which no longer happens. These changes however mean that
Cargo is not as strictly controlled (now_lambda is not set to latest
always, however the [[bin]] is overwritten).
Cargo.toml is now also backed up and restored for builds, so that it
does not get updated for the users source control management.
* Updated tests for changesnow dev and other changes (#19)1 parent 6609c67 commit 78bddcc
File tree
20 files changed
+1240
-194
lines changed- package
- src
- test
- fixtures
- 01-include-files
- 02-with-utility
- api
- 03-with-function
- api
- 04-with-parameter
- api
20 files changed
+1240
-194
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
65 | 81 | | |
66 | 82 | | |
67 | 83 | | |
| |||
75 | 91 | | |
76 | 92 | | |
77 | 93 | | |
78 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
79 | 99 | | |
80 | 100 | | |
81 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
| |||
0 commit comments