Teodor Heggelund
de06c199f1
bb print-deps: sort dependencies (#1582 )
...
* `bb print-deps`: sort dependencies
Co-authored-by: Teodor Heggelund <git@teod.eu>
2023-06-28 18:17:06 +02:00
Michiel Borkent
7b7feb7034
Fix #1575 : command line parsing problem with -e + *command-line-args*
2023-06-11 11:11:10 +02:00
Michiel Borkent
2e3bd2d3f0
Bump deps.clj ( #1556 )
2023-05-12 16:05:41 +02:00
Michiel Borkent
4dcc159ed7
Fix #1545 : Adjacent bb.edn not respected with explicit -f option ( #1547 )
2023-04-26 14:41:21 +02:00
Bob
39e4ea71e9
Fix #1189 : add test for error message for clojure {:dir "missing-directory"} ( #1543 )
...
* add test for error message from running clojure
task in non-existent dir
* make testing string more accurate
2023-04-22 23:37:17 +02:00
Michiel Borkent
26967df643
Fix #1541 : respect bb.edn adjacent to invoked file ( #1542 )
2023-04-21 13:50:53 +02:00
Bob
19bfd172fc
vary ports across socket repl tests ( #1539 )
...
* use different port for socket repl tests
- update socket-command to socket-command-on-port, which
takes a port and then returns the socket-command function
- change port numbers across tests
* undo little formatting change
* grr... newlines
2023-04-18 09:47:40 +02:00
Michiel Borkent
c89a396bbd
Add java.security.cert.CertificateFactory ( #1531 )
2023-04-07 23:54:59 +02:00
Michiel Borkent
4a45624acd
Version bump
2023-03-18 15:07:51 +01:00
Michiel Borkent
69373fb445
Support clojure.lang.MapEntry/create
2023-03-11 23:38:16 +01:00
Michiel Borkent
9545d23cc4
Enable unix protocol on Windows ( #1516 )
2023-03-09 22:51:42 +01:00
Michiel Borkent
e74e7ed2ca
Fix #1511 : support domain sockets ( #1514 )
2023-03-09 16:57:17 +01:00
Michiel Borkent
68878e7f89
Fix #1510
2023-03-08 10:55:43 +01:00
Michiel Borkent
84bd66f869
Mark ssl test as flaky
2023-03-07 19:34:48 +01:00
Rahuλ Dé
9e004edefe
Fix #1507 : support calling getName on virtual thread
2023-03-02 15:10:58 +01:00
Michiel Borkent
076a2774be
Fix #1506 : :exec-args in task should override :exec-args on fn metadata
2023-02-28 19:45:49 +01:00
Bob
5dc7763325
- remove zero size tolerance for overwriting uber-files ( #1504 )
...
- in tests, delete temp output files that would prevent overwrite
- in tests, change 'non-empty' files to be empty files (since
non-empty is no longer necessary)
- in hato test, replace nghttp2 with httpbin, since httpbin
uses http/2 by default now, and to benefit from httpbin
'flaky' test
2023-02-26 10:13:27 +01:00
Bob
3045cd226e
Fix #1489 : prevent uberscript/uberjar overwrites ( #1503 )
2023-02-25 21:36:02 +01:00
Michiel Borkent
187ee7da00
Add support for .getWatches on atoms
2023-02-25 21:33:55 +01:00
Michiel Borkent
3ad043769c
Use GraalVM 22.3.1 on JDK 19.0.2 with virtual thread support ( #1500 )
2023-02-21 16:23:03 +01:00
Michiel Borkent
be426ee56d
Add secret key test
2023-02-15 13:30:09 +01:00
Daniel Vingo
ead237eee3
Add more java classes and interfaces to support juxt.tick ( #1490 )
2023-02-10 10:39:54 +01:00
Michiel Borkent
6d1f295f47
Fix #1487 : babashka.tasks/clojure with 0 args ( #1488 )
2023-02-06 22:36:26 +01:00
Michiel Borkent
a19d05b8da
Support reader_tags.clj(c) ( #1481 )
2023-02-03 21:21:56 +01:00
Michiel Borkent
ca1e2d7769
Classloader interop improvements ( #1480 )
2023-02-03 13:08:55 +01:00
Michiel Borkent
72dbf53df7
TODO: disable :flaky tests on master branch:
2023-02-01 23:00:13 +01:00
Michiel Borkent
76e779d0d3
Compatibility with clojure.tools.namespace.repl/refresh and clojure.java.classpath ( #1479 )
2023-02-01 21:53:52 +01:00
Rahuλ Dé
32864476e5
Fix #1473 : make :local/root deps resolve paths relative to bb.edn
...
Co-authored-by: Michiel Borkent <michielborkent@gmail.com>
2023-01-28 14:27:54 +01:00
Michiel Borkent
4220902927
Try fixing test on Windows
2023-01-23 18:13:47 +01:00
Michiel Borkent
a464b59bc2
Fix #1472 : fix double tokenization when calling clojure from tasks
2023-01-23 16:35:51 +01:00
Michiel Borkent
eca7847ed9
Fix #1467 : avoid printing results by default, unless --prn is enabled ( #1469 )
2023-01-21 15:38:50 +01:00
Michiel Borkent
b9308eddcc
Fix #1456 : allow dyn vars to be set in socket REPL ( #1461 )
2023-01-04 21:23:29 +01:00
Michiel Borkent
3aca505790
Partial fix for #1456 (nREPL issue) ( #1460 )
...
Co-authored-by: axks <alexander.kaiser@blockinfinity.com>
2023-01-04 20:46:04 +01:00
Matthew Downey
62916fa292
Fix #1451 : Allow passing explicit file and line number to clojure.test
2022-12-20 19:41:36 +01:00
Michiel Borkent
69db7105e5
Support new syntax in babashka.deps/clojure ( #1440 )
2022-12-07 10:04:40 +01:00
Michiel Borkent
bd857ae3e1
Partially revert, will revisit
2022-12-05 17:46:43 +01:00
Michiel Borkent
43375d49a2
Allow deps/clojure to be called with new syntax
2022-12-05 15:14:52 +01:00
ikappaki
6e00354053
Fix 1430: empty tasks names display list ( #1431 )
...
Co-authored-by: ikappaki <ikappaki@users.noreply.github.com>
2022-11-28 10:51:39 +01:00
Michiel Borkent
99f1e948d3
Fix pREPL tests
2022-11-19 11:50:14 +01:00
Michiel Borkent
40e0087b59
Fix socket repl tests
2022-11-19 11:21:23 +01:00
Michiel Borkent
b458d79b29
Switch to use ctx-store for global context
2022-11-19 11:00:35 +01:00
Michiel Borkent
9ed3cb6a31
Fix #1414 : preserve metadata on exec task function argument map
2022-11-11 17:34:44 +01:00
Michiel Borkent
ac1b16bfc8
SCI: preserve more stacktrace, e.g. on throw
2022-11-10 21:04:01 +01:00
Michiel Borkent
bca3f28e28
Graalvm 22.3.0 ( #1408 )
2022-10-25 22:56:57 +02:00
Michiel Borkent
351723fdb6
Fix #1384 : allow .indexOf on LazySeq
2022-10-18 17:32:22 +02:00
Michiel Borkent
b6f19b03dc
Fix #1397 : clojure.lang.Namespace
2022-10-18 17:27:17 +02:00
Baishampayan Ghose
77768cec67
feat: Honor *print-namespace-maps* in pprint ( #1387 )
...
We can now use the dynamic var `*print-namespace-maps*` to control how
maps with namespaced keys are printed using `pprint`.
Fixes : #1381
2022-10-04 19:11:59 +02:00
Michiel Borkent
020d42a94f
Fix #808 : -Sdeps
2022-09-24 13:25:06 +02:00
Bob
78cbdd1d82
#1336 : --force as global opt ( #1374 )
2022-09-24 10:59:34 +02:00
Michiel Borkent
42ebb92c5d
exec tests
2022-09-23 21:26:37 +02:00
Michiel Borkent
7b563dd802
exec-test [skip ci]
2022-09-23 21:18:52 +02:00
Michiel Borkent
3110dde2ab
Fix #1368 : -x: do not pick up on aliases in user ns
2022-09-22 20:05:22 +02:00
Michiel Borkent
3b5dbb7c66
Fix #1367 : line number in clojure.test output
2022-09-22 14:03:48 +02:00
Michiel Borkent
2f146bd712
Fix #1364 : Be tolerant of unknown tags in bb.edn
2022-09-18 12:29:16 +02:00
Eero Helenius
4926aaf85f
Add and expose babashka.classes/all-classes ( #1362 )
...
* Add and expose babashka.classes/all-classes
* Add test for babashka.classes/all-classes
2022-09-13 10:54:30 +02:00
Michiel Borkent
267646fbe7
Fix gc test
2022-09-09 18:13:40 +02:00
Crispin Wellington
ea4f56886d
Expose a subset of java.lang.ref to enable hooking into the destruction/GC of objects ( #1359 )
...
* reify java.lang.Object with optional toString and finalize
* reify java.lang.Runnable
* reflection support for java.lang.Runnable
* java.lang.ref.* class exposure
* test for detection of garbage collection of Object
* added change to changelog
2022-09-09 17:25:32 +02:00
Michiel Borkent
cd54d2a911
Improve reify error messages ( #1352 )
...
Co-authored-by: Crispin Wellington <retrogradeorbit@gmail.com>
2022-09-06 10:24:15 +02:00
Michiel Borkent
18e19934d1
Fix #1350 : map clojure.lang.Var to sci.lang.Var
2022-09-05 20:59:37 +02:00
Michiel Borkent
9ed705f8db
Pod namespaces come before namespaces from source
2022-06-20 12:14:48 +02:00
Michiel Borkent
4bfe0eec89
Convey print-length to pprint and allow set!
2022-04-16 11:37:14 +02:00
Michiel Borkent
d8db9eee63
fix #1231 : missing methods in reify should fall back to default interface methods ( #1240 )
2022-04-14 18:14:31 +02:00
Bob
3d0befb52b
update some SciVar names (metadata-wise) to align with babashka name ( #1236 )
...
* update SciVar names to align with the symbols in the namespace maps
* make test using a bb script more consistent with others
* update changelog
2022-04-07 14:02:06 +02:00
Stel Abrego
d2278835f1
Fix #1041 : Improve error message when regex literal in EDN config ( #1230 )
...
* Improve error message when regex literal in EDN config (#1041 )
Regex literal syntax (example: #"^foo") is not allowed in EDN. With the
ability to write tasks in the config file, users may mistakenly try to
include regex literals. This patch improves the error message by
informing the user that literal regex syntax is not allowed and
recommends using re-pattern instead.
* Update changelog
* Fixup main.clj
* Fixup changelog
2022-04-05 11:03:39 +02:00
Michiel Borkent
f09e085c75
Move bb.edn in uberjar to META-INF
2022-04-03 13:36:00 +02:00
Michiel Borkent
e81ef4aac0
Declarative pod support for uberscript ( #1227 )
2022-04-02 23:41:04 +02:00
Michiel Borkent
7af93adf15
Fix test
2022-04-02 17:47:27 +02:00
Michiel Borkent
ea4c4eae77
windows fix
2022-04-02 17:09:34 +02:00
Wes Morgan
963bd7957a
Feature: declarative pods support in uberjars ( #1217 )
...
* Store bb.edn in uberjar & load when run from there
* Sync resources deps.edn w/ root
* Throw error if --config arg doesn't exist
...instead of silently falling back on ./bb.edn
* Fix jar file arg parsing
Moving all arg parsing up above bb.edn ingestion made tasks turn into files to load. But this is a chicken-and-egg problem w/ uberjars b/c the bb.edn is inside the jar file, so we need that first. So I extracted the file parsing out into its own fn and put the full arg parsing back where it was after ingesting bb.edn.
* Fix local pod key in error message
* Ensure resources dir exists when copying bb.edn into it
* Copy bb.edn to temp dir when building uberjar
..and add that dir to the classpath for the jar
* Only put :pods in uberjar bb.edn
* Small readability fix
* Add ret val type hints for classpath/resource
Got a reflection warning on one of my calls
* Add a test for uberjars with bb.edn-declared pods
* Only run uberjar-with-pods-test on amd64 for now
2022-04-02 16:51:08 +02:00
Michiel Borkent
4d24cdca2a
Proxy support for PipedInputStream and PipedOutputStream
...
* Spire requires proxy support for java.io.PipedInputStream and java.io.PipedOutputStream
* proxy support for java.io.PipedInputStream and java.io.PipedOutputStream
* proxy tests for PipedInputStream and PipedOutputStream
Co-authored-by: Crispin Wellington <retrogradeorbit@gmail.com>
2022-03-31 10:00:16 +02:00
Michiel Borkent
1ad93077c1
fix #1216 : fix core.async alts example with polyfill
2022-03-23 23:49:09 +01:00
Wes Morgan
e602286799
feat #863 : Load pods from bb.edn ( #1205 )
...
Co-authored-by: Michiel Borkent <michielborkent@gmail.com>
2022-03-23 17:08:59 +01:00
mknoszlig
f9451f5de0
feat #1204 : add babashka.config property
2022-03-11 11:03:42 +01:00
Michiel Borkent
3f49ad3b89
fix #1199 : print-method impls on records ( #1200 )
2022-03-05 17:11:11 +01:00
Michiel Borkent
61e47555f9
feat #1187 : Add :result key to (current-task) map that can be used in :leave task hook
2022-02-27 12:10:33 +01:00
Michiel Borkent
141881376d
fix #1190 : task dependencies resolve as core.async channels ( #1191 )
2022-02-27 11:49:40 +01:00
Michiel Borkent
83c610ca0f
fix #1180 : limit bb tasks output to first line of docstring
2022-02-24 12:28:54 +01:00
Michiel Borkent
19e87a545d
fix #1181 : clojure.test report does not respect *test-out* correctly ( #1182 )
2022-02-18 22:54:10 +01:00
Michiel Borkent
b461925981
SCI: use mutable arrays for bindings ( #1177 )
2022-02-14 11:52:32 +01:00
Roger Lam
9969b83341
Ensure leading zeros are not trimmed for algorithm "SHA-256", so that hash string size is always 64. ( #1176 )
2022-02-12 11:06:49 +01:00
Michael Glaesemann
ca59f3890e
fix #1143 : allow optional (ignored) -- when using using --main ( #1147 )
...
Permits previously-accepted behavior broken in 19415f6363
2022-01-20 14:53:54 +01:00
Michiel Borkent
da31e9c61c
fix #1144 : cannot create multidimensional arrays ( #1145 )
2022-01-16 12:42:10 +01:00
Michiel Borkent
061bc528ae
this test wasn't supposed to be in master!
2022-01-05 20:21:19 +01:00
Michiel Borkent
d050e7d58d
deps.clj: update to clojure CLI 1.10.3.1058
2022-01-05 20:11:23 +01:00
Michiel Borkent
34f9997df4
[ #1123 , #1124 ] Do not require java for bb tasks without deps
2021-12-30 16:32:15 +01:00
Michiel Borkent
ddf03c50ae
[ #1116 ] Missing error message when exception happens in REPL print
2021-12-29 16:10:30 +01:00
Michiel Borkent
1912b921df
Fixes for issue reported by @thiagokokada
2021-12-27 21:31:13 +01:00
Michiel Borkent
fb7f984389
[ #1110 ] Load tasks and deps from other bb.edn file ( #1117 )
...
Co-authored-by: Bob <highpressurecarsalesman@gmail.com>
2021-12-26 17:26:35 +01:00
Michiel Borkent
93fb4379ff
[ #584 , #1037 ] Uberscript in bb ( #1115 )
2021-12-23 21:23:11 +01:00
Michiel Borkent
86c67af49c
[ #1105 ] Include native elements in printed stacktrace ( #1113 )
2021-12-22 13:04:29 +01:00
Michiel Borkent
73d466e7d6
Fix SCI#649 aget reflection ( #1100 )
...
Fix issue with aget reported in babashka/sci#649 by @MrEbbinghaus
2021-12-09 22:38:38 +01:00
Michiel Borkent
2079f0a554
Add print-deps test
2021-11-29 23:42:36 +01:00
Michiel Borkent
4566905a5c
Add compatibility with hato and clj-http-lite insecure feature ( #1080 )
...
Added classes:
- java.net.CookiePolicy
- java.net.http.HttpTimeoutException
- javax.net.ssl.HostnameVerifier
- javax.net.ssl.HttpsURLConnection
- javax.net.ssl.KeyManagerFactory
- javax.net.ssl.SSLSession
- javax.net.ssl.TrustManagerFactory
- java.security.KeyStore
- java.util.zip.Inflater
- java.util.zip.ZipException
2021-11-27 15:58:24 +01:00
Michiel Borkent
e419c569a8
Support satisfies? on protocol values ( #1076 )
2021-11-24 17:38:38 +01:00
Michiel Borkent
a95c51998f
limit space of InetAddress4/6
2021-11-23 11:34:30 +01:00
Michael Glaesemann
5940b95cd2
Add javax.crypto classes necessary for calculating hmac shas. ( #1066 )
...
* Add javax.crypto classes necessary for calculating hmac shas.
* Add hmac-256-sha test for javax.crypto.
2021-11-18 08:49:59 +01:00
Michiel Borkent
948c38c035
Add support for BasicFileAttributes
2021-11-13 11:05:21 +01:00
Michiel Borkent
321c47297d
[ #1061 ] Calling close on DirectoryStream fails
2021-11-13 10:38:21 +01:00
Michiel Borkent
2bb7499fd5
[ #1055 ] Segfault when reifying FileVisitor with visitFileFailed
2021-11-07 12:05:16 +01:00
Michiel Borkent
19415f6363
Fix remaining args when invoking -m
2021-11-02 13:46:51 +01:00