Commit Graph

975 Commits

Author SHA1 Message Date
Paulo Castro
88a1e413a3 Fix balena push "Segmentation fault" on Windows (replace 'mmmagic' with 'isBinaryFile')
Connects-to: #1611
Change-type: patch
2020-02-13 15:51:45 +00:00
Balena CI
d48672fa93 v11.25.17 2020-02-12 19:01:59 +02:00
Balena CI
9d04e616a8 v11.25.16 2020-02-12 15:57:18 +02:00
Balena CI
bff845a0e4 v11.25.15 2020-02-12 15:01:04 +02:00
Pagan Gazzard
93ba5832d8 Convert lib/auth/server to typescript
Change-type: patch
2020-02-12 12:10:12 +00:00
Balena CI
af86ac73e6 v11.25.14 2020-02-12 13:56:18 +02:00
Pagan Gazzard
a4b34c109d Convert lib/actions/keys to typescript
Change-type: patch
2020-02-10 22:22:06 +00:00
Balena CI
69714a646b v11.25.13 2020-02-11 00:11:34 +02:00
Balena CI
cefb3acc1f v11.25.12 2020-02-10 17:53:58 +02:00
Balena CI
a9c0899c32 v11.25.11 2020-02-10 16:28:18 +02:00
Balena CI
4b8cec652a v11.25.10 2020-02-08 02:54:39 +02:00
Paulo Castro
05d478b759 CI builds: revert patch-package upgrade to fix patch errors
This fixes a build error caused by a recent version bump of 'patch-package':
"Patch file found for package execa which is not present at node_modules/qqjs/node_modules/execa"

Change-type: patch
2020-02-08 00:19:05 +00:00
Balena CI
2cb5e28258 v11.25.9 2020-02-08 00:29:18 +02:00
Pagan Gazzard
467afb3de6 Add .gitattributes to check out with the correct line-ending on windows
Change-type: patch
2020-02-07 21:40:48 +00:00
Balena CI
324a406e7f v11.25.8 2020-02-07 23:36:09 +02:00
Pagan Gazzard
6d543b79ff Merge resin-lint linting and fixing steps into one
Change-type: patch
2020-02-07 19:34:35 +00:00
Pagan Gazzard
85aaf77e44 Remove redundant type checking of tests
Change-type: patch
2020-02-07 19:34:35 +00:00
Pagan Gazzard
83c5684491 Remove duplicate type checking of automation code
Change-type: patch
2020-02-07 19:34:35 +00:00
Balena CI
6bc4fbb750 v11.25.7 2020-02-07 21:32:58 +02:00
Balena CI
654d1dcff8 v11.25.6 2020-02-07 13:21:48 +02:00
Pagan Gazzard
3f84045127 Switch from opn to its new name of open
Change-type: patch
2020-02-06 19:55:22 +00:00
Balena CI
544f8fb4bd v11.25.5 2020-02-06 20:50:18 +02:00
Balena CI
f732c5bf5d v11.25.4 2020-02-06 19:58:38 +02:00
Pagan Gazzard
895be0be5d Use resin-lint for automatic lint fixing
Change-type: patch
2020-02-06 17:29:23 +00:00
Balena CI
0f17129c2e v11.25.3 2020-02-06 19:25:49 +02:00
Balena CI
da3c11533c v11.25.2 2020-02-05 05:14:59 +02:00
Balena CI
f53a69feb1 v11.25.1 2020-02-04 12:33:13 +02:00
Balena CI
1417875110 v11.25.0 2020-02-03 10:23:28 +02:00
Scott Lowe
58e7880f1d Add support for auto-conversion of CRLF line endings.
Applies to commands:
 balena push
 balena build
 balena deploy --build

Change-type: minor
Resolves: #1273
Signed-off-by: Scott Lowe <scott@balena.io>
2020-01-31 16:27:22 +01:00
Balena CI
38194e6175 v11.24.0 2020-01-31 01:42:39 +02:00
Paulo Castro
1e37c97ffb Fix proxy support and add proxy exclusion feature (Node.js >= 10.16.0 only)
See README for more details on proxy configuration and Node.js compatibility.

Resolves: #1579
Resolves: #1335
Connects-to: #1580
Change-type: minor
Signed-off-by: Paulo Castro <paulo@balena.io>
2020-01-27 12:11:11 +00:00
Balena CI
ceb47e9969 v11.23.0 2020-01-27 13:12:47 +02:00
Pagan Gazzard
77931b314a Update dependencies
Change-type: minor
2020-01-24 23:28:15 +00:00
Balena CI
b38b5b0b61 v11.22.0 2020-01-21 23:45:41 +02:00
Balena CI
751f67e997 v11.21.8 2020-01-21 13:06:33 +02:00
Paulo Castro
9db6961a7e Add catch-uncommitted to balena CI build
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2020-01-20 23:25:24 +00:00
Paulo Castro
b978230f9e Update resin-lint and prettier, and re-prettify
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2020-01-20 22:46:32 +00:00
Balena CI
bbea58a9c8 v11.21.7 2020-01-20 13:26:30 +02:00
Balena CI
df3e1f1886 v11.21.6 2020-01-20 05:22:14 +02:00
Balena CI
cd6072ac73 v11.21.5 2020-01-15 13:37:57 +02:00
Balena CI
a2ca8e8f73 v11.21.4 2020-01-14 22:16:39 +02:00
Paulo Castro
51adfeaa3b Fix join and leave commands on Windows (hanging on stdin and argument escaping)
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2020-01-14 19:34:53 +00:00
Balena CI
76447a2177 v11.21.3 2020-01-14 21:32:33 +02:00
Paulo Castro
3466be1992 Increase default mocha test timeout to avoid spurious CI failures
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2020-01-14 17:12:17 +00:00
Balena CI
dd7d9d1570 v11.21.2 2020-01-14 18:05:30 +02:00
Balena CI
a94e6d550e v11.21.1 2020-01-14 02:19:39 +02:00
Balena CI
4e95cb0cca v11.21.0 2019-12-27 14:32:41 +02:00
Balena CI
024bf2996b v11.20.2 2019-12-17 16:55:00 +02:00
Scott Lowe
3cce8d822c Update livepush to fix windows path issue.
Change-type: patch
Connects-to: https://github.com/balena-io-modules/livepush/issues/55
Signed-off-by: Scott Lowe <scott@balena.io>
2019-12-17 15:24:34 +01:00
Balena CI
65250e431e v11.20.1 2019-12-13 11:01:49 +02:00
Balena CI
c88b317143 v11.20.0 2019-12-13 02:54:30 +02:00
Balena CI
b1eda160e8 v11.19.1 2019-12-06 17:14:20 +02:00
Balena CI
622c510d65 v11.19.0 2019-12-05 16:37:52 +02:00
Scott Lowe
33210b896b Introduce balena-api-mock module to simplify api mocking.
Upgrade nock to latest.

Change-type: minor
Signed-off-by: Scott Lowe <scott@balena.io>
2019-12-05 15:10:34 +01:00
Balena CI
c2a0e457c0 v11.18.3 2019-11-21 19:12:40 +02:00
Balena CI
a8bd5d332a v11.18.2 2019-11-15 14:41:22 +02:00
Balena CI
45ce442cf2 v11.18.1 2019-11-15 12:18:56 +02:00
Paulo Castro
caac6855da Fix "Invalid containerPort" error with EXPOSE instructions in local QEMU builds
Bump docker-qemu-transpose package to v1.0.2

Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-11-15 09:31:14 +00:00
Balena CI
e379900526 v11.18.0 2019-11-12 23:47:46 +02:00
Balena CI
268bc36843 v11.17.5 2019-11-12 21:14:37 +02:00
Balena CI
07fa504c78 v11.17.4 2019-11-06 13:08:49 +02:00
Balena CI
f75f00e4d0 v11.17.3 2019-11-04 14:45:54 +02:00
Balena CI
aa5062ea6f v11.17.2 2019-11-01 18:05:45 +02:00
Balena CI
5f780a0947 v11.17.1 2019-10-29 12:50:40 +02:00
Balena CI
f7a4160c3f v11.17.0 2019-10-23 14:03:38 +03:00
Cameron Diver
8ed4f547e0
Update livepush to support build arguments
Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
2019-10-22 13:24:00 +01:00
Balena CI
3393e797d0 v11.16.6 2019-10-22 13:49:34 +03:00
Balena CI
d96ad93e1e v11.16.5 2019-10-22 13:18:17 +03:00
Paulo Castro
f50f169ff0 Bump livepush and reconcile husky dependency
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-10-22 11:01:02 +02:00
Balena CI
eada1ab87e v11.16.4 2019-10-18 04:40:16 +03:00
Paulo Castro
59a7b9d12b Move npm version check from npm 'preinstall' to git 'pre-commit' hook
This should allow end users to use npm v6.4.1 that ships with Node 8,
while still requiring CLI developers to use npm v6.9.0 or later.

Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-10-18 00:25:23 +01:00
Balena CI
3bb5ca50b2 v11.16.3 2019-10-17 22:38:45 +03:00
Paulo Castro
eaffc2574f Fix npm install (missing automation/check-npm-version.js)
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-10-17 19:57:09 +01:00
Balena CI
5142274e9d v11.16.2 2019-10-17 21:36:16 +03:00
Paulo Castro
e7c89cf77c Add npm preinstall check for npm version 6.9.0 or later
Older npm versions cause the npm-shrinkwrap.json file to be incorrectly
updated. This should avoid regression bugs related to issue #1332.
https://github.com/balena-io/balena-cli/issues/1332

Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-10-17 15:43:21 +01:00
Balena CI
09444f0cff v11.16.1 2019-10-17 14:23:47 +03:00
Thodoris Greasidis
ee3a0cc630 Fix shrinkwrap unwanted changes from older npm version
Change-type: patch
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2019-10-17 13:59:21 +03:00
Balena CI
b40498786a v11.16.0 2019-10-16 23:33:34 +03:00
Thodoris Greasidis
1f4382bea8 Add support for private device types
Resolves: #1471
Depends-on: https://github.com/balena-io/balena-sdk/pull/761
Depends-on: https://github.com/balena-io-modules/balena-config-json/pull/15
HQ: https://github.com/balena-io/balena/pull/1740
See: https://www.flowdock.com/app/rulemotion/resin-tech/threads/IGXgYQxfnJfGO8rtTMOJ2yUZ1RU
See: https://www.flowdock.com/app/rulemotion/resin-frontend/threads/FNuwNgrDfJGRcsoJI7yJV-bx5DD
Change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2019-10-16 16:26:19 +03:00
Balena CI
0cdf4d95e5 v11.15.0 2019-10-16 14:13:14 +03:00
Balena CI
f831bb4645 v11.14.5 2019-10-16 02:19:15 +03:00
Paulo Castro
05cb89725e Fix privilege elevation (sudo) for 'os initialize', 'join', 'leave'
* sudo shell arguments required escaping for 'os initialize'
* sudo was not working for standalone zip packages (incorrect
  Node.js path in argv[0])
* Interactive 'join' and 'leave' not working on Windows because
  'windosu' does not capture stderr.

Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-10-15 21:47:26 +01:00
Balena CI
43ae9b672c v11.14.4 2019-10-14 19:53:05 +03:00
Balena CI
4280a3cd4a v11.14.3 2019-10-14 16:55:01 +03:00
Paulo Castro
101a4bc209 Chore: replace typings/intercept-stdout with @types/intercept-stdout
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-10-10 16:02:41 +01:00
Balena CI
449461afae v11.14.2 2019-10-09 16:22:55 +03:00
Paulo Castro
7dd33adfd1 Fix 'balena build --emulated' on Windows (including default docker socket)
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-10-09 13:10:49 +01:00
Balena CI
63fe3d41cc v11.14.1 2019-10-04 16:00:33 +03:00
Paulo Castro
78e627a471 Bump resin-multibuild to 4.3.1 (fix more cases of SecretRemovalError)
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-10-04 12:33:39 +01:00
Balena CI
3adc06d11b v11.14.0 2019-10-03 14:33:52 +03:00
Balena CI
863eae42c5 v11.13.1 2019-09-30 17:36:18 +03:00
Balena CI
3718473f05 v11.13.0 2019-09-30 15:59:02 +03:00
Thodoris Greasidis
408f739e2d Bump balena-sdk to v12.12.0 to stop using image maker endpoints
Resolves: #1453
Depends-on: https://github.com/balena-io/balena-sdk/pull/735
Depends-on: https://github.com/balena-io-modules/balena-image-manager/pull/45
HQ: https://github.com/balena-io/balena/issues/1744
Change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2019-09-30 15:36:46 +03:00
Balena CI
f481d5edae v11.12.0 2019-09-25 13:20:45 +03:00
Thodoris Greasidis
f9d6a0ee72 Allow mixing armv7 & aarch64 devices in RPi 1 / zero apps
Resolves: #1448
HQ: https://github.com/balena-io/balena/issues/1905
Change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
2019-09-24 13:22:13 +03:00
Balena CI
9ea999f15f v11.11.3 2019-09-23 11:47:15 +03:00
Balena CI
32c588db55 v11.11.2 2019-09-19 13:23:45 +03:00
Balena CI
606b6c88ab v11.11.1 2019-09-18 16:12:54 +03:00
Paulo Castro
c07b28e694 Migrate 'envs' and 'env rename' commands to oclif
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-09-18 12:54:31 +01:00
Paulo Castro
2ff427fb90 Refactor oclif integration and preparser
Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
2019-09-17 17:20:16 +01:00