Calvin Rose
8ce092da68
Update create-dirs to work on windows style paths.
2020-04-25 12:01:09 -04:00
Calvin Rose
d148e14aa2
Merge pull request #357 from andrewchambers/lockfilejdn
...
Lockfiles are jdn, not code.
2020-04-23 13:03:51 -04:00
Andrew Chambers
748a5d41c1
Lockfiles are jdn, not code.
2020-04-23 21:53:36 +12:00
Calvin Rose
99d9c57154
Add the --offline flag to jpm.
...
This will let jpm install things only from the cache, and not
try and sync the latest from git.
2020-04-21 12:41:08 -05:00
Calvin Rose
13559baecc
Merge pull request #354 from andrewchambers/safeclean
...
Do not recurse into symlinks when cleaning.
2020-04-21 13:21:42 -04:00
Andrew Chambers
e1b6175efd
Do not recurse into symlinks when cleaning.
2020-04-21 15:11:51 +12:00
Calvin Rose
da88dd8cfa
Streamline tree printing code.
2020-04-20 19:50:32 -05:00
Calvin Rose
ea1341a129
Show post-deps rules in rule tree.
2020-04-20 19:19:53 -05:00
Calvin Rose
343cb779d2
Remove extra os/mkdir.
2020-04-20 19:06:53 -05:00
Calvin Rose
b0af01a762
Remove ./build as default rule.
...
Instead, all compilation rules do the equivalent of
mkdir -p to make sure that we can build the output file.
2020-04-20 19:02:09 -05:00
Calvin Rose
d8617514f8
Add jpm rule-tree.
...
Useful for debugging jpm project.janet files.
This tree printing logic can also be reused for
showing dependency information in the future.
2020-04-20 18:32:25 -05:00
Calvin Rose
67fb2c212f
Address #348
...
Remove extreneous data from lockfile.
2020-04-16 18:44:21 -05:00
Calvin Rose
3eb84fcb13
Fix some typos, make jpm repl work without a project.janet.
2020-04-16 12:11:17 -05:00
Calvin Rose
058f63b440
Add sh-rule and sh-phony to jpm dialect.
...
Provides useful shorthand for writing rules that invoke
shell commands.
2020-04-14 20:43:53 -05:00
Calvin Rose
9f8420bf50
Add jpm repl subcommand and post-deps macro for jpm.
...
This will allow more flexibility in writing jpm project files.
2020-04-03 19:33:54 -05:00
Calvin Rose
72696600d8
Add :deps opiton to declare-executable.
...
This allows the addition of custom dependencies.
2020-04-03 17:53:41 -05:00
Calvin Rose
65379741f7
Address edge case of reduce2 when ind is empty.
...
Same for accumulate 2.
2020-03-27 12:45:40 -05:00
Calvin Rose
3eb0927a2b
Add accumulate(2) and reduce2
...
These functions are variations on reduce and can be quite useful.
Improve error message for jpm as well.
2020-03-26 21:35:11 -05:00
Calvin Rose
a20ea702e2
Add infinite loop detection and complex deps.
...
We needed to handle dependencies that had both a url
and a tag component.
2020-03-26 00:34:34 -05:00
Calvin Rose
d2d0300c7e
Remove use of cd in make-lockfile.
2020-03-26 00:12:18 -05:00
Calvin Rose
6721c70b9e
Fix typo in jpm.
2020-03-25 21:01:54 -05:00
Calvin Rose
b8c1c1c144
Get lockfile info from manifest, not cache.
...
Make manifest files track more information.
Use jdn to store manifest files, as well as repo url and
sha.
2020-03-25 20:58:53 -05:00
Calvin Rose
e380c01dd1
Add lockfiles to jpm.
...
Add make-lockfile and load-lockfile commands.
2020-03-25 19:44:30 -05:00
Calvin Rose
6f9c9879ca
Add var-
...
We had defn-, def-, defmacro-, but no var-.
2020-01-24 22:52:28 -06:00
Calvin Rose
9dad8bf56d
Remove min-order and max-order.
...
Also address #275 by exposing lflags and cflags
to declare-executable
2020-01-24 17:35:21 -06:00
Calvin Rose
bbed72f39f
Only enable lto on linux for now.
...
Was failing with clang, as the default clang linker doesn't
do LTO.
2020-01-20 13:37:10 -06:00
Calvin Rose
99c94a78d6
Add -flto to jpm builds as well.
2020-01-20 13:28:57 -06:00
Calvin Rose
d8841de180
Address #188
...
Delete repo folder if clone fails.
2020-01-16 22:14:23 -06:00
Calvin Rose
f001b0a40c
Update Changelog
...
Also change how add-body in jpm works. We keep an array of thunks
instead of a single thunk.
2020-01-13 20:51:11 -06:00
Calvin Rose
94b472df64
Update jpm with show-paths
...
Update CHANGELOG.md as well.
2019-12-15 22:02:33 -06:00
Calvin Rose
c3f1b54171
Update jpm path settings.
...
This will make it easier to use jpm as a per-project
management tool, as well as easier to set up individual
module trees.
2019-12-12 19:35:40 -06:00
Calvin Rose
7c2ae45809
Fix some merge issues.
...
Make everything compile, and test-install pass.
2019-12-12 17:14:36 -06:00
Calvin Rose
36b2f27873
Merge branch 'master' into threads-3
2019-12-12 17:07:03 -06:00
Calvin Rose
b8e02afd1a
Improve error messages in os.c and jpm
...
In os/* functions, show failed path name. In jpm, indicate
a permission issue if we can't stat the file.
2019-12-12 03:20:20 -06:00
Calvin Rose
ee646dadf2
Merge branch 'master' into threads-3
2019-12-07 12:14:44 -06:00
Calvin Rose
1fa7e73c58
Address #218
...
Quote output to :lfags in meta data.
2019-12-06 18:45:29 -06:00
Calvin Rose
1a4035b02c
Merge branch 'master' into threads-3
2019-12-04 22:39:30 -06:00
Calvin Rose
73a4c395d2
Address #190
...
We don't ever invoke ld directly, so ignore --linker on non-windows.
For --compiler and --archiver, default to $CC and $AR. These are
overshadowed by CLI flags or settings in project.janet.
2019-12-03 21:00:59 -06:00
Calvin Rose
5cd6580c2d
Merge branch 'threads-3' of github.com:janet-lang/janet into threads-3
2019-12-01 20:25:57 -06:00
Calvin Rose
8e31bda8f6
Fix issue #189
2019-11-30 21:54:23 -05:00
Calvin Rose
f3c0d9115f
Fix calling jpm quickbin binary with no arguments.
2019-11-30 15:11:34 -05:00
Calvin Rose
66e6979812
Add thread flags to standalone executables.
2019-11-27 15:06:31 -06:00
Calvin Rose
8a91c52fa2
Change pthreads linking with jpm, make, and meson.
...
Try to add pthread deps when compiling programs with jpm.
2019-11-27 14:52:20 -06:00
Calvin Rose
d71cf093bb
Add /i switch to xcopy in jpm
2019-11-12 02:51:37 -05:00
Calvin Rose
86d21816b6
Fix jpm mendoza install on windows.
2019-11-12 02:45:20 -05:00
Calvin Rose
c9292ef648
Use /MD on windows.
...
Just makes things easier. Assume machines have msvcrt.dll
on them. If not, we can add msvcrt.dll to the dist folder and add to
installer.
2019-11-09 16:05:07 -05:00
Calvin Rose
8911daaf6c
Add --test flag to jpm.
...
Also test some select packages when testing installation.
This is used in CI to make sure that versions of Janet work with
the most libraries.
2019-11-09 10:03:56 -06:00
Calvin Rose
cf19cd5292
Add the quickbin command to jpm.
...
This is useful for making one off executable scripts
without needing to set up a project.janet file.
2019-10-29 20:33:18 -05:00
Calvin Rose
088c926196
Add update-pkgs to jpm.
...
This allows for periodically updating the package listing.
2019-10-10 18:46:24 -05:00
Calvin Rose
54b66a4199
Add shorthand package name support in jpm.
...
Package installation checks in the package listing if
the package name is not a url. The package listsing can be specified
via switch or env variable.
2019-10-10 18:11:45 -05:00