Commit graph

121 commits

Author SHA1 Message Date
Matthias Loibl
6ed6c3f3ec
For local dependencies check if abs path exists 2019-08-12 11:50:56 +02:00
Benoit Gagnon
5e742d5339 Resolve commit SHA1 from GitHub archive ETag header 2019-07-30 22:50:39 -04:00
Benoit Gagnon
134b21a473 use Go-native untar and gunzip support to unpack github archives 2019-07-30 21:49:32 -04:00
Benoit Gagnon
ba93fb74c3 Download tarball archives from GitHub (wip) 2019-07-26 08:05:50 -04:00
Benoit Gagnon
671f860a19 Shallow fetch for Git packages
If the server supports it, fetch a specific
revision with --depth 1. Otherwise, fall back
to the normal fetch.

This replaces the previous "clone" operation. The bandwidth and time savings
can be significant depending on the history
of the repository (number of commits).
2019-07-24 23:02:14 -04:00
Benoit Gagnon
30d7929566 Use git sparse checkout whenever possible
If a SubDir is configured for the package,
everything but that directory will be thrown
away after the package is installed.
2019-07-24 22:59:53 -04:00
Benoit Gagnon
c9a5b0a6b2 Pass -n flag to git clone
There's an explicit git checkout command
issued moments later, so there's no need
to create a working copy during the clone.
2019-07-24 22:16:00 -04:00
Matthias Loibl
e655fcaf60
Update README.md with new args name 2019-07-23 15:09:58 -07:00
Matthias Loibl
e4dcc3e116
Refactor git deps install and make local deps install work 2019-07-23 15:07:35 -07:00
Frederic Branczyk
4bea3f2e30
Merge pull request #35 from metalmatze/tests
Add integration tests
2019-07-23 14:32:20 -07:00
Matthias Loibl
07801936c0
Create LocalSource as type for local dependencies 2019-07-23 14:01:25 -07:00
Matthias Loibl
6ee790d911
Add ability to parse local dependency 2019-07-23 14:00:27 -07:00
Matthias Loibl
e5199342ea
Remove unused code in main.go 2019-07-23 14:00:25 -07:00
Matthias Loibl
4630466006
Fix typo in parseDependency name and add tests 2019-07-23 14:00:24 -07:00
Matthias Loibl
95226f7f9b
Sort spec types by dependencies 2019-07-23 14:00:21 -07:00
Matthias Loibl
9110b1417d
Accept paths instead of URLs 2019-07-23 14:00:19 -07:00
Matthias Loibl
3e85357934
Actually run go test on packages 2019-07-23 14:00:17 -07:00
Matthias Loibl
53ca56c221
Separate update command into own file cmd/jb/update.go 2019-07-23 13:59:50 -07:00
Matthias Loibl
30a3cde870
Make use of File and LockFile constants of jsonnetfile package 2019-07-23 13:59:47 -07:00
Matthias Loibl
9d10f90924
Fix install integration tests by using v0.1.0 of jb 2019-07-23 13:44:51 -07:00
Matthias Loibl
ce22ada9e2
Run unit tests and integration tests in CI 2019-07-23 13:42:38 -07:00
Matthias Loibl
807ab8dc76
drone: Run tests including integration tests 2019-07-23 13:37:23 -07:00
Matthias Loibl
42b0bb7ab2
Add license headers 2019-07-23 13:36:28 -07:00
Matthias Loibl
2ac07139f6
Update vendored deps 2019-07-23 13:36:26 -07:00
Matthias Loibl
d95948a351
cmd/jb: Create integration tests for init and install 2019-07-23 13:36:23 -07:00
Matthias Loibl
f71ef86d48
Create pkg/jsonnetfile to better encapsulate jsonnetfile things 2019-07-23 13:36:21 -07:00
Matthias Loibl
27c36f6160
pkg: Write tests for TestInsertDependency, TestFileExists, TestLoadJsonnetfile 2019-07-23 13:36:18 -07:00
Matthias Loibl
c516ce2506
Pass the working dir from main.go 2019-07-23 13:29:32 -07:00
Matthias Loibl
7560a1075c
Extract cmd/jb/init.go 2019-07-23 13:29:29 -07:00
Matthias Loibl
5fdb88b6f0
Extract cmd/jb/install.go 2019-07-23 13:29:26 -07:00
Matthias Loibl
2b3982453f
Merge pull request #34 from davidovich/33-suppress-detached-head-advice
suppress detached head advice
2019-07-23 12:38:40 -07:00
davidovich
c914ece3df suppress detached head advice
This limits urelated output to the console when installing deps
2019-07-23 12:43:21 -04:00
Matthias Loibl
7ad4e41347
Merge pull request #32 from davidovich/fix-tests-are-not-run
Fix tests are not run
2019-07-12 11:37:53 +02:00
davidovich
58b6d89d04 fix compile test failure 2019-07-10 17:57:29 -04:00
davidovich
35ea3ae13f remove -i flag of go test that disables tests
from go help test:

        -i
            Install packages that are dependencies of the test.
            Do not run the test.

This patch simply removes the -i.
2019-07-10 17:57:20 -04:00
Matthias Loibl
080f157c7f
Merge pull request #29 from metalmatze/cut-0.1.0
Release v0.1.0
2019-04-23 17:34:26 +02:00
Matthias Loibl
e45b3ee5f6
Release v0.1.0 2019-04-23 17:03:40 +02:00
Matthias Loibl
18923f2dfc
Use Drone as the CI with a working pipeline (#28) 2019-04-23 14:26:40 +02:00
Frederic Branczyk
ccabc9707c
Merge pull request #27 from metalmatze/modules
Use Go modules
2019-04-23 11:28:05 +02:00
Matthias Loibl
a07883b49e
Use Go modules 2019-04-23 11:24:40 +02:00
Frederic Branczyk
482b78743f
Merge pull request #26 from sparkprime/readme
Add usage examples to README.md
2019-04-01 11:17:51 +02:00
Dave Cunningham
15a95d4bb4 few more tweaks 2019-03-13 13:13:20 +00:00
Dave Cunningham
eceba3ee45 -J vendor and italics 2019-03-13 11:02:13 +00:00
Dave Cunningham
22f353a7b4 Add usage examples to README.md 2019-03-12 19:00:08 +00:00
Frederic Branczyk
aa225e597c
Merge pull request #25 from metalmatze/color
Print colored output for fetched package
2019-03-12 07:59:05 +01:00
Matthias Loibl
c2599b641f
Print colored output for fetched package 2019-03-11 14:21:49 +01:00
Frederic Branczyk
c28ae9034d
Merge pull request #17 from metalmatze/newline
Add a newline at the end of jsonnetfile
2018-09-12 13:37:55 +02:00
Matthias Loibl
decc4efecb
Add a newline at the end of jsonnetfile 2018-09-07 10:59:39 +02:00
Frederic Branczyk
49e110fd83
Merge pull request #15 from metalmatze/init-warning
Check for existing jsonnetfile.json before init
2018-08-08 10:41:23 +02:00
Matthias Loibl
eddfcec0f5
Check for existing jsonnetfile.json before init 2018-08-08 10:35:20 +02:00