492 Commits

Author SHA1 Message Date
Tady 5cf71dc3c6 fix typo in stdout (#319) 2022-10-24 15:58:19 +08:00
xiantang a2b8871f2a change build delay to zero (#343)
* change build delay to zero

Co-authored-by: xiantang <zhujingdi1998@gamil.com>
2022-10-24 15:56:13 +08:00
K Kovács 3be9ef7094 proposed change to fix stop_on_error=false not working in .air.toml (#336) 2022-10-24 14:39:01 +08:00
silverwind 25c287e039 Add include_file option (#337)
* Add `include_file` option
2022-10-24 14:12:13 +08:00
Victor Cinaglia b2e600550d preserve runtime arguments when using full_bin (#321) 2022-10-24 14:05:51 +08:00
Robert Boros 63b6ba3c14 update go version in dockerfile (#327) 2022-09-03 15:14:37 +08:00
fldm713 4515837021 Add more support for root (#315) 2022-08-01 23:33:12 +08:00
xiantang 5ac18a4db4 Fix update ExcludeRegex to empty not work (#308)
* Fix update ExcludeRegex to empty not work https://github.com/cosmtrek/air/issues/304
2022-07-11 18:43:01 +08:00
xiantang 39482e0b76 Update readme for 'Error under wsl when ' is included in the bin' 2022-07-11 14:09:53 +08:00
jshnaidman 6f18a44eb4 fixes air_example.toml regex expression (#303)
* fixes air_example.toml regex expression

* increases coverage of TestRegexes
2022-07-07 23:31:17 +08:00
Thomas Eichmann b878e3ce6b Fix command line argument handling for slice configuration parameters (#299)
* Fix command line argument handling for slice configuration parameters (comma separated list).

* Update READMEs.

* Add unset value

* extend waiting

* don't need export unsetDefault

Co-authored-by: Thomas <me@thomaseichmann.com>
Co-authored-by: xiantang <zhujingdi1998@gmail.com>
2022-07-02 16:48:46 +08:00
xiantang 2ffc212b55 Extend port ready timeout to 10s 2022-07-02 00:49:54 +08:00
mophia 664ec37dfe Add a Chinese version of README (#275) (#297)
* [feat] Readme: add Chinese version of Readme
2022-06-21 11:40:16 +08:00
xiantang 70c7ecb168 Update README.md 2022-06-14 14:26:31 +08:00
xiantang 64187c44ad Fix panic with build error (#295) 2022-06-11 22:59:13 +08:00
masato-hi 4612c12f1e Fix run process become a zombie. (#293) 2022-06-09 09:14:16 +08:00
xiantang 8a2d83a574 Update README.md 2022-06-08 21:23:13 +08:00
xiantang b3a0f1348a Use cosmtrek/air 2022-06-07 00:26:05 +08:00
xiantang bb7fe28877 feat:support command line arguments when user not want use config file (#180)
Co-authored-by: jingdi.zhu <jingd.zhu@shopee.com>
2022-06-07 00:08:01 +08:00
xiantang 7b308c5d21 Add more coverage for air check unchanged file (#290)
* add test case for filechecksum
2022-06-05 21:35:11 +08:00
xiantang 1d4d11619d Add more coverage for air init (#288)
* Fix dlv port address already in use

# Conflicts:
#	runner/engine.go
#	runner/util_linux.go

* move to engine test
2022-06-05 21:18:30 +08:00
xiantang dee5db649e fix air wrong image tag (#289)
* should be cosmtrek
2022-06-05 21:13:31 +08:00
Robert Boros a74b85500a Docker ARM support (#271)
* setup platform at build

* mock commit

* fix docker tag

* remove delve

* remove empty line
2022-06-05 20:32:31 +08:00
xiantang 65bd047944 try to fix cannot ctrl c when configed kill delay (#287)
* try to fix cannot ctrl c when have kill_delay
2022-06-04 00:47:33 +08:00
xiantang bc71f7dd2c Fix port already used when using dlv to debug go program (#259)
* Fix dlv port address already in use
* add test for dlv port already used
2022-06-03 23:38:12 +08:00
xiantang a76f116caa add Test case for using ctrl c to stop engine (#286)
* add Test case for using ctrl c to stop

* No need waiting for waitingPortConnectionRefused
2022-06-03 17:49:45 +08:00
xiantang 190d721d08 Add more coverage for Run (#285)
Add more coverage for Run

Check air rebuild case
2022-06-03 17:17:24 +08:00
xiantang 82ffdeba7b Add more coverage for Run main group (#284)
* Add more coverage for Run
2022-06-03 16:30:25 +08:00
xiantang a7650534c1 Using buldkit to build dockerfile (#280) 2022-05-23 23:26:35 +08:00
Cédric Anthony 0c5e73afb0 📦 NEW: Updated go to 1.18 in Docker (#268)
* 📦 NEW: Updated go to 1.18

* 🐛 FIX: Revert to go 1.17 in most of the files
2022-05-04 13:06:46 +08:00
Gurleen Sethi f7ec5b5ac2 🌐 doc: update example air file to document args_bin property (#264) 2022-04-05 00:30:12 +08:00
Miika Petäjäniemi 705822078e Add support for runtime arguments (#166)
* Add support for runtime arguments

Adds support for providing runtime arguments for the built binary.

* fix tests

* refactor to support #136

* add comment explaining the joining of arguments

* fix tests

* Fix arguments wrongly passed to the build step

* Fix usage documentation

* fix darwin and windows commands

* Revert markdown autoformatter changes
2022-03-12 15:03:58 +08:00
xiantang 9a18bdb9ec Revert "quote binary pathname for unix like os (#179)" (#260)
This reverts commit 142ece345b.
2022-03-09 22:16:37 +08:00
MakKi (makki_d) 142ece345b quote binary pathname for unix like os (#179) 2022-03-09 20:44:45 +08:00
Dennis Schön 9557343eea 🐛 Fix interrupt handling on darwin (#257)
*🐛 fix interrupt handling on darwin

*🐛 send interrupt to process group pid

Co-authored-by: Dennis Schön <dennis.schoen@aroundhome.de>
2022-02-25 18:38:11 +08:00
silverwind ec4f56f074 Add go install methods to README (#256)
May even make it the preferred way of installing.
2022-02-23 09:32:30 +08:00
xiantang 1e895ef469 Use close(e.binStopCh) to boardcast event which is stop running bins (#255)
* Use close(e.binStopCh) to boardcast event which is stop running bins
2022-02-22 22:58:33 +08:00
Nick Adams 673a832411 ensure multiple processes stop to avoid address already in use errors (#254)
* ensure multiple processes stop to avoid  address already in use errors

* add code cov
2022-02-22 22:45:59 +08:00
xiantang 06f09d9992 🐛 bug fix kill when building (#251)
🐛 * fix kill air when building issue
2022-02-08 21:30:12 +08:00
xiantang 9a9b1f639b Fix npe xiantang (#247)
️ close https://github.com/cosmtrek/air/issues/246
* fix NPE for find process
* add test for no such process
2022-01-25 21:21:48 +08:00
xiantang 1c27effe33 Merge pull request #244 from cosmtrek/add_test_for_kill_process
add test for kill process
2022-01-24 00:12:28 +08:00
xiantang 191fcbb189 rmove wait cos we use kill -pgid 2022-01-24 00:10:35 +08:00
xiantang 8fda21bf22 rmove wait cos we use kill -pgid 2022-01-24 00:09:11 +08:00
xiantang cb28789877 rmove wait cos we use kill -pgid 2022-01-24 00:07:01 +08:00
xiantang 0ebb84999f add test for kill process 2022-01-24 00:05:42 +08:00
xiantang 332b97172f add test for kill process 2022-01-24 00:02:18 +08:00
xiantang db3849bf69 add test for kill process 2022-01-23 23:56:45 +08:00
xiantang 3721ecc776 add test for kill process 2022-01-23 23:55:49 +08:00
xiantang f15d2e0858 add test for kill process 2022-01-23 23:53:57 +08:00
xiantang b83a90e2c1 add test for kill process 2022-01-23 23:53:05 +08:00