Commit graph

90 commits

Author SHA1 Message Date
Dominik Picheta
abb9d79ea4 Parse command line args first so that -v doesn't read config. 2016-12-19 22:28:19 +01:00
Dominik Picheta
3c22ffd848 Implements a nimblepkg/cli module which formats output messages. 2016-12-19 21:42:02 +01:00
Dominik Picheta
d42a07e0f7 Fixes nimbledata.json being read from default nimbleDir. 2016-12-15 23:31:45 +01:00
Dominik Picheta
4276b7237d Merge pull request #273 from nim-lang/ARAQ-fix-warnings
fixes a 'break search loop' bug; got rid of most compiler warnings
2016-12-12 20:17:29 +01:00
Araq
82868ea818 get rid of unnecessary cyclic module dependency 2016-11-24 00:45:47 +01:00
Araq
b3f793ae0d get rid of unnecessary cyclic module dependency 2016-11-24 00:16:05 +01:00
Dominik Picheta
180653216c Bump to v0.7.11. 2016-11-11 11:40:40 +00:00
Araq
ee3ad4353e fixes a 'break search loop' bug; got rid of most compiler warnings 2016-11-06 23:06:37 +01:00
Araq
a0670e9620 finish migration to new compiler API 2016-11-06 19:58:37 +01:00
Araq
417136e57e make Nimble compiler with the lastest version of the compiler API 2016-11-05 01:17:05 +01:00
Araq
9c81e28343 Merge branch 'master' into araq-compiler-api2 2016-11-01 00:21:51 +01:00
Araq
4ce6f2b395 make Nimble compile with the changed compiler API 2016-10-31 20:40:21 +01:00
Dominik Picheta
06b942680b Remove spammy message about nimscriptapi.nim. 2016-10-26 21:14:18 +02:00
Dominik Picheta
2eec391732 Fixes getInstalledPkgs returning minimal package information.
This was introduced in commit 2cf03313fd.
2016-10-26 20:10:17 +02:00
Dominik Picheta
1be5c052ae Version 0.7.10. 2016-10-09 15:20:31 +02:00
Dominik Picheta
65dbd97269 Moves nimbleVersion to common.nim and uses it in .nimble file. 2016-10-09 15:19:42 +02:00
Dominik Picheta
b0737ada9b Fixes #186. 2016-10-08 21:13:49 +02:00
Dominik Picheta
0564cb238a Fixes #129. 2016-10-08 20:51:19 +02:00
Dominik Picheta
138a5a2ae9 Statically read nimscriptapi.nim into the executable.
Fixes #238.
2016-10-08 20:27:47 +02:00
Dominik Picheta
436b7c6e93 HotFix: Support spaces in binary paths for doCmdEx. 2016-09-28 23:30:09 +02:00
Jeff Ciesielski
29d69e9cc7 Add tilde expansion to nimbleDir. Fixes #239 2016-09-15 09:00:04 -04:00
Dominik Picheta
e512b02fca Fix compilation problem introduced by nim-lang/Nim#4357. 2016-06-17 14:12:07 +01:00
def
f6a19b54e4 Fix --depsOnly 2016-06-08 16:28:24 +02:00
Dominik Picheta
b50426c3d3 Set compiler.options.gPrefixDir to help it find the stdlib.
Fixes #220. Fixes #173.
2016-06-06 21:16:08 +01:00
Dominik Picheta
5deff1501a Re-adds -d:ssl by default. Fixes #209. Fixes #210. 2016-06-06 11:10:52 +01:00
Andreas Rumpf
e9e6f814d0 Hotfix: make nimble compile with nim devel again 2016-05-31 09:58:27 +02:00
tormund
cec74dbdcc add install only dependencies 2016-05-23 14:47:15 +03:00
Yuriy Glukhov
4c3f62adf3 Renamed actionUpdate to actionRefresh 2016-04-13 15:20:28 +03:00
Aidan Steele
8abf18633d Package names are case insensitive (#190) 2016-04-11 10:39:10 +10:00
Yuriy Glukhov
36d09de320 Fixed FD leak. 2016-04-06 15:21:55 +03:00
Rostyslav Dzinko
296499435e Fixed permission issue when installing package 2016-02-17 10:26:35 +02:00
Dominik Picheta
ac1714ffef Fixes infinite loop. Ref @zielmicha/reactor.nim#1. 2016-01-10 00:36:02 +00:00
Dominik Picheta
1fa209a689 Fix tests. Add test for hooks. 2015-12-30 20:20:04 +00:00
Dominik Picheta
42ef358459 Various optimisations to PackageInfo reading and bug fixes.
* PackageInfo objects are now cached because NimScript evaluation is expensive.
* before/after hooks now return `true` by default.
* Bugfix: when hooks weren't found Nimble would still think that a hook told it
  to skip an action.
* PackageInfo now includes info about which hooks are defined to prevent
  unnecessary execution of those hooks.
* Probably more.
2015-12-30 19:43:20 +00:00
Dominik Picheta
5d55a5f7a2 Fix NimScriptApi builtins. Implement before/after hooks for NimS. 2015-12-30 18:14:32 +00:00
Dominik Picheta
2674cacd16 Fixes #86. 2015-12-29 16:28:01 +00:00
Dominik Picheta
9bc08236fb Turn new validation errors in warnings. 2015-12-29 15:59:42 +00:00
Dominik Picheta
50d2637b04 Implement proxy support (configurable). Ref #86. 2015-12-29 15:31:22 +00:00
Dominik Picheta
2f57dd1b2a git:// now replaced with https:// (configurable). Ref #86. 2015-12-29 14:37:10 +00:00
Dominik Picheta
835157ce34 Implements configurable package list URLs. Implements #75. 2015-12-29 13:43:05 +00:00
Dominik Picheta
8d4c6446d1 Fixes #171 2015-12-28 16:40:21 +00:00
Dominik Picheta
ca99ad7d21 Moved Nimble-specific Nimscript definitions to nimscriptapi module.
* Moved package info reading procedures to a packageparser module. This is to prevent recu
rsive dependencies between nimscriptsupport and packageinfo modules.
* Passed the Options object to all procedures which read package info (necessary for nimscriptsupport module, to find the path of the nimscriptapi module)
* Introduced an ``isInstalled`` field to the ``PackageInfo`` type. This is a bug fix for g
etRealDir: it no longer uses the ``src`` field in the path it returns for installed packag
es' PackageInfo objects.
* Improved error reporting from NimScript evaluator.
* Renamed compiler/options import to ``compiler_options`` in ``nimscriptsupport`` module.
* Backward compatibility for .babel packages in getNameVersion proc.
* Introduced a getInstalledPkgsMin procedure which does not read package info, but only pr
ovides minimal info instead.
2015-12-28 16:33:34 +00:00
Dominik Picheta
84f371982b Implemented flags and arguments for NimScript's setCommand. 2015-12-25 16:32:46 +00:00
Dominik Picheta
5eaee85825 Refactored command line parsing further. 2015-12-25 15:04:55 +00:00
Dominik Picheta
186f2836e9 Refactor Options type and related procs into an options module. 2015-12-25 00:31:30 +00:00
Dominik Picheta
e5573f0096 Make ValidationError for inconsistent nimble project names a warning. 2015-12-24 20:20:19 +00:00
Dominik Picheta
0a1b583392 Fixed tests. 2015-12-24 17:54:58 +00:00
Dominik Picheta
98045ea39c Better error message when an installed package fails validation.
Fixes #175.
2015-12-24 17:46:46 +00:00
Dominik Picheta
96ddb12da8 Fixes #126. 2015-12-24 10:26:36 +00:00
Yuriy Glukhov
6cb0c5043b Fixed compilation 2015-12-24 11:25:59 +02:00