Commit graph

328 commits

Author SHA1 Message Date
Ganesh Viswanathan
4770556939 Fix for #280 2018-01-08 00:37:20 -06:00
Neelesh Chandola
3cc9c4b2f5
Fix #446 2018-01-05 18:52:57 +05:30
Chris
74856a8708 Prevent reserved names on Windows from being package names.
Fixes #349
2017-12-22 11:31:33 -05:00
Xiao-Yong
e32e2cdcbe Initialize nimbleDir option from the environment variable NIMBLE_DIR (#417)
* Initialize options from the environment variable NIMBLE_DIR

* Tests for the existence of project.nim file

Matches nim's command line handling of 'nim c project'
The error message also states the files being tested.

* Fix deprecated warnings (#420)

* Fix deprecated warning

* Fix deprecation warnings

* Initialize options from the environment variable NIMBLE_DIR

* inform user about using NIMBLE_DIR env
2017-12-21 23:43:59 +00:00
Fabian Keller
209fca53e7 Terminate copy iteration when hitting in-place nimbleDir (#429)
* terminate copy iteration when hitting in-place nimbleDir; fixes #428

* investigate travis issue

* more investigations

* more investigations

* fix nim version issue
2017-12-21 23:15:03 +00:00
antizealot1337
4cc1d44bdd Reuse -y to mean accept defaults for init command for #288 (#437)
* Reuse -y to mean accept defaults for init command

* Change cli.promptCustom to accept a ForcePrompt value and delegate prompting responsiblity to it

* Add prompt for different license selection

* Remove extra spaces in category in promptCustom and promptList

* Fix bug that always returned MIT

* Add LGPL3 to array of licenses

* Change to not prompt at all for package name

* Change to not prompt for author if acquired from vcs and moved before prompting for version

* Reduce excess indenting

* Create tools.writeContents to contain file writting functionality and use it to write the nimble file

* Create package src directory and add it to the nimble file

* Write an initial source file

* Create directory and files needed for testing

* Add package created message and change priority of nimble file creation

* Rearrange args for promptCustom and add another promptCustom function that doesn't accept ForcePrompt

* Add package type prompt, remove writeContents proc, rename initial test file, provide alternate initial file contents based on type, and other minor improvements
2017-12-21 23:11:02 +00:00
Daniil Yarancev
f852198724 Fix deprecated warnings (#420)
* Fix deprecated warning

* Fix deprecation warnings
2017-11-01 19:07:40 +00:00
Xiao-Yong Jin
8ca1cc0957 Tests for the existence of project.nim file
Matches nim's command line handling of 'nim c project'
The error message also states the files being tested.
2017-10-23 15:51:32 -05:00
Xiao-Yong
4992707e8b Put "nimblepkg/nimscriptapi.nim" under nimbleDir, fix #363 (#416)
* Put "nimblepkg/nimscriptapi.nim" under nimbleDir, fix #363

By default, the module will be under
  $HOME/.nimble/nimblecache/nimblepkg/nimscriptapi.nim
and the following directory will be in the searchPaths
  $HOME/.nimble/nimblecache/

* Put "nimblepkg/nimscriptapi.nim" under nimbleDir, fix #363

By default, the module will be under
  $HOME/.nimble/nimblecache/nimblepkg/nimscriptapi.nim
and the following directory will be in the searchPaths
  $HOME/.nimble/nimblecache/
2017-10-19 18:58:50 +01:00
Dominik Picheta
c7b97bb206 Implements check command. 2017-10-15 15:28:29 +01:00
Dominik Picheta
a02a1431e2 Simplify implementation of path for Nimble links. 2017-09-30 14:16:57 +01:00
Dominik Picheta
596d17804f Merge branch 'fix-403' of https://github.com/yglukhov/nimble into yglukhov-fix-403 2017-09-30 13:51:02 +01:00
Dominik Picheta
fc6912a139 Verify that GIT hash was retrieved correctly during compilation. 2017-09-30 13:49:59 +01:00
Yuriy Glukhov
a247047089 Fixed nondeterminism in version sorting 2017-09-20 18:18:22 +03:00
Yuriy Glukhov
88b4a9ed8a Introduced NimbleLink object with its read/write routines 2017-09-09 23:33:31 +03:00
Yuriy Glukhov
5a739b4c03 Fixes #403 2017-09-08 17:44:04 +03:00
Dominik Picheta
5b82e06d00 Version 0.8.8. 2017-09-03 18:26:17 +01:00
Dominik Picheta
d9b174b7df Work around NimScript eval problems by caching better. 2017-09-03 17:44:15 +01:00
Dominik Picheta
301a366dd2 Refactoring and many fixes to PR #378. (Broken)
This commit is broken due to a cleanup issue with NimScript eval.
2017-09-03 17:37:52 +01:00
Dominik Picheta
6a851f5b87 Merge branch 'master' of https://github.com/Nycto/nimble into Nycto-master 2017-09-03 15:16:04 +01:00
Dominik Picheta
92e9ec5e59 Fixes #373. Implements #287. Fixes #271. 2017-09-02 23:19:03 +01:00
Dominik Picheta
3c1e669eaa Only consider #head to be newest not other special versions.
Refs #311.
2017-09-02 15:39:57 +01:00
Dominik Picheta
acbce88bac Fixes cloning repo for develop command. 2017-08-19 22:03:45 +01:00
Dominik Picheta
bdfb681824 Fixes #290. 2017-08-19 21:22:48 +01:00
Dominik Picheta
c46e3dcd4d Speeds up the list -i command. 2017-08-19 21:02:15 +01:00
Dominik Picheta
3bdce8d332 Fixes removal of linked packages (and speeds up removal). 2017-08-19 20:56:29 +01:00
Dominik Picheta
97dc0ffb45 Implements basic support for building with .nimble-link'ed packages. 2017-08-16 22:22:00 +01:00
Dominik Picheta
5f1de1e4ff Don't fail immediately when user doesn't want to load packages.json. 2017-08-16 22:20:24 +01:00
Dominik Picheta
a5f325f032 Small refactoring. 2017-08-16 19:51:22 +01:00
Zach Smith
1ef7e49350 Don't normalize package list paths. That strips meaningful characters. 2017-08-13 17:41:56 -04:00
Dominik Picheta
56dd401831 Implements develop command. Refs #240. 2017-08-13 15:04:40 +01:00
Dominik Picheta
84d63c8988 Fixes compilation on Windows. 2017-08-13 15:02:09 +01:00
Dominik Picheta
d1eae2f1a0 Fixes #351. 2017-08-12 22:01:47 +01:00
Dominik Picheta
ee34150d70 Fixes #331. 2017-08-12 20:48:17 +01:00
Dominik Picheta
c379a79910 Bump to v0.8.7 (devel). 2017-08-12 14:52:11 +01:00
Dominik Picheta
612c084688 Improvements to #385. 2017-08-12 14:50:32 +01:00
Dominik Picheta
4050683a9c Merge branch 'out-of-mem' of https://github.com/yglukhov/nimble into yglukhov-out-of-mem 2017-08-12 12:42:31 +01:00
Dominik Picheta
b47f174748 Merge pull request #348 from antizealot1337/seqstringarg
Change buildFromDir to accept a seq[string] instead of a string.
2017-08-12 11:18:41 +01:00
Daniil Yarancev
29c9cf8ce7 Removed deprecated warnings, also tiny refactoring 2017-08-10 12:51:16 +03:00
Yuriy Glukhov
06a94ba28f Lower memory consumption 2017-08-07 17:22:47 +03:00
waylon531
4a78953fc6
Added better url detection to publish
Publish will now look at the hostname part of the ssh url to figure out
what git server to use. This definitely works with both github and
gitlab, and adds gitlab support to `nimble publish`.
2017-07-25 17:10:05 -07:00
Yuriy Glukhov
e756a14c15 Fixed branch checkout and handling of branch names with dashes. (#379)
* Fixed branch checkout and  handling of branch names with dashes.

* Added assert
2017-07-19 22:42:28 +01:00
Nycto
254658ee5d Add test target 2017-07-18 09:26:52 -07:00
Dominik Picheta
10a38a3c90 Merge pull request #371 from subsetpark/local-json
Allow specifying local json package list files
2017-07-11 19:30:14 +01:00
Zach Smith
2a7e1f132c Code Review from @dom96 2017-06-26 17:12:46 -04:00
Zach Smith
2718a8e9d5 Use path != "" instead of len check 2017-06-25 17:40:06 -04:00
Zach Smith
f2836e5a5c Roll back downloadFile upgrade 2017-06-25 17:27:56 -04:00
Zach Smith
c89ca099a2 Allow locally stored package list files to be specified in config (#368) 2017-06-25 17:10:08 -04:00
Zach Smith
183fed527b Make conventional structure more explicit in structure warnings and readme 2017-06-25 16:31:34 -04:00
Xiao-Yong
a69d7563f4 nimble accepts a .nimble file that is a link 2017-06-07 23:32:42 -05:00