Commit graph

62 commits

Author SHA1 Message Date
Michiel Borkent
8bc0852799
Revert "Revert "Allow env vars OS_NAME & OS_ARCH to override os props (#53)"" (#54)
This reverts commit 6cbbdd118d.
2022-09-07 21:23:32 +02:00
Michiel Borkent
6cbbdd118d Revert "Allow env vars OS_NAME & OS_ARCH to override os props (#53)"
This reverts commit 5754d433aa.
2022-09-07 20:02:27 +02:00
Wes Morgan
5754d433aa
Allow env vars OS_NAME & OS_ARCH to override os props (#53) 2022-09-07 19:47:38 +02:00
Michiel Borkent
93081b75e6
Manifest dir with env var (#50) 2022-07-04 19:57:35 +02:00
Michiel Borkent
eb0b01c0a6 fix #49: don't log socket closed exception 2022-05-30 10:10:12 +02:00
Wes Morgan
aee5337cef
Check that cache dir is writable before writing (#47)
...pod metadata cache file
2022-05-14 18:44:00 +02:00
Michiel Borkent
c2d6ba847c pods env var 2022-05-06 14:53:31 +02:00
Michiel Borkent
e075b13bfe
Add fallback for Apple M1 (#46) 2022-03-23 19:32:47 +01:00
Wes Morgan
842ff34739
Fix tests, remove accidental babashka code dependency, & add CI config (#45)
* Update clojure CLI flags in script/test

* Throw error when not one of version or path

...with qualified symbol pod-spec

* Fix some minor formatting issues

* Check for new error message in pod-registry test

* Add a test for resolve fn in edn data readers

* Add CI config

* Try using clojure tools-deps image in CI

* Check for new error message in sci pod-registry test

* Use latest version of buddy in pod-registry test

...for more platform support

* Stop depending on babashka

Instead accept an arg for the thing we were getting from it (location of the bb.edn file)

* Save maven deps in cache in CI
2022-03-23 16:57:56 +01:00
Wes Morgan
f2cfdff899
Feature: declarative pods (#44)
* Use non-deprecated string->int method

* Remove unused next-pod-id

* Support declarative pods loaded on require

* Wait for pod shutdown in load-pod-metadata

* Type hint a File return value to avoid reflection

* Return pod metadata instead of putting in ctx

* Fix local pod loading & support :cache opt

* Document :pods in bb.edn

* Cache local pods metadata in project .babashka dir

* Pass pod resolve-fn to describe->metadata

Not only was this just a bug, but the accidental reference to clojure.core/resolve ballooned the final bb image size to >110MB!
2022-03-23 12:26:58 +01:00
Michiel Borkent
5fbf1d7b04 Revert "Feature: declarative pods loaded at require time (#43)"
This reverts commit 8f059da7e6.
2022-03-22 14:00:24 +01:00
Wes Morgan
8f059da7e6
Feature: declarative pods loaded at require time (#43)
* Use non-deprecated string->int method

* Remove unused next-pod-id

* Support declarative pods loaded on require

* Wait for pod shutdown in load-pod-metadata

* Type hint a File return value to avoid reflection

* Return pod metadata instead of putting in ctx

* Fix local pod loading & support :cache opt

* Document :pods in bb.edn

* Cache local pods metadata in project .babashka dir
2022-03-21 20:46:57 +01:00
Paula Gearon
973c4e5c9e
[#38] Support metadata on vars 2021-10-15 17:43:12 +02:00
Michiel Borkent
de4c3610c9 minor 2021-05-19 23:48:14 +02:00
Michiel Borkent
0f31e57977 Rename 2021-05-19 21:31:51 +02:00
Michiel Borkent
37326045aa Add support for default transit handler #36 2021-05-19 21:19:18 +02:00
Michiel Borkent
6214f06146 Implicit pod-id 2021-05-19 20:34:38 +02:00
Michiel Borkent
05ecf97127 Scope transit read and write handlers to pod ids 2021-05-19 17:20:55 +02:00
Michiel Borkent
1fdd8231bd
[#33] Allow pods to register transit handlers for reading and writing 2021-05-17 11:41:51 +02:00
Michiel Borkent
0bffce3573 Write to output before delivering result 2021-01-03 18:00:42 +01:00
Michiel Borkent
65f1d280af [babashka/pod-registry#4] Fix issue with unzipping file 2020-12-29 13:57:09 +01:00
Michiel Borkent
280f99888c Pod resolver tests. See borkdude/babashka#690 2020-12-29 11:15:12 +01:00
Michiel Borkent
22f200ef30
Pod resolver. See borkdude/babashka#690 2020-12-27 13:55:50 +01:00
Michiel Borkent
e71ae00d03 Get rid of :needs-ctx 2020-11-18 17:44:01 +01:00
Michiel Borkent
a0418d6622 Tweak 2020-10-21 17:28:11 +02:00
Michiel Borkent
02cef05574 Handle socket exception gracefully. 2020-10-21 16:53:52 +02:00
Michiel Borkent
df334946b9 Make unload and invoke take ret val of load-pod 2020-10-21 14:10:31 +02:00
Michiel Borkent
a522cb834f Tweak socket config 2020-10-21 13:58:59 +02:00
Michiel Borkent
a8268683e0 Fix NPE 2020-10-15 17:54:10 +02:00
Michiel Borkent
b81d8b30bf Fix destroy 2020-10-15 17:19:44 +02:00
Michiel Borkent
e1ab6a00e5 [#21] Support transit+json 2020-10-15 11:27:23 +02:00
Michiel Borkent
dd57413d27 [#2] Tests 2020-10-15 10:55:22 +02:00
Michiel Borkent
0ecf6d6d40 rm debug 2020-10-14 16:52:36 +02:00
Michiel Borkent
8732bc810b [#2] socket support 2020-10-14 16:44:43 +02:00
Michiel Borkent
225f9239d8 [#2] Experimental socket support 2020-10-13 22:34:01 +02:00
Michiel Borkent
7f804baca8 [#2] Experimental socket support 2020-10-13 11:08:26 +02:00
Michiel Borkent
c1530bd07e [#20] Ensure ns-map exists for code-only namespaces 2020-09-30 12:24:04 +02:00
Michiel Borkent
9036af1957 Add logging on EDN or JSON read error 2020-06-01 17:57:05 +02:00
Michiel Borkent
4b8fb02c7d
[#15] load-ns op 2020-05-26 16:30:46 +02:00
Michiel Borkent
62e0a1b074 [#11] reader functions 2020-05-22 12:45:50 -03:00
Michiel Borkent
1ff8316d02 Simplify 2020-05-21 12:38:01 -03:00
Michiel Borkent
c59063e7dc Rid ordered dependency 2020-05-21 12:35:34 -03:00
Michiel Borkent
8a420bdf84 Fix ordering of vars. Fix #10. 2020-05-21 12:28:14 -03:00
Michiel Borkent
9d4b853e8f tweaks 2020-05-20 22:56:32 +02:00
Michiel Borkent
5a2f68c1ea invoke sync 2020-05-20 21:57:22 +02:00
Michiel Borkent
3b90c4ba59 return map from load-pod 2020-05-20 20:23:19 +02:00
Michiel Borkent
3e5637b33f
[#3] unload-pod 2020-05-20 20:11:46 +02:00
Michiel Borkent
990d804199 [#6] make callbacks more user friendly 2020-05-20 17:12:23 +02:00
Michiel Borkent
fb6e739aee Free from core.async 2020-05-20 13:44:29 +02:00
Michiel Borkent
57b86f301d [#6] refactor handlers 2020-05-20 13:28:04 +02:00