Commit graph

14 commits

Author SHA1 Message Date
sh0rez
25fcc6dda0
doc: update README 2020-03-17 17:42:08 +01:00
Tom
7b8a7836a4
feat: absolute imports (#63)
* feat: go-like import style

jb now creates a directory structure inside of vendor/ that is similar to how go
does (github.com/grafana/jsonnet-libs). This is reflected in the final import
paths, which means they will be go-like

* refactor(spec/deps): named regexs

* feat: make goImportStyle configurable

Defaults to off, can be enabled in `jsonnetfile.json`

* fix: integration test

* doc: license headers

* fix(deps): remove GO_IMPORT_STYLE

not an option anymore, will always do so and symlink

* feat: symlink to legacy location

* feat: allow to disable legacy links

* fix(test): legacyImports in integration tests

* fix(spec): test

* fix: respect legacyName aliases

It was possible to alias packages by changing `name` previously.

While names are now absolute (and computed), legacy links should still respect
old aliases to avoid breaking code.

* fix(test): integration

* fix(init): keep legacyImports enabled for now

* feat: rewrite imports

adds a command to automatically rewrite imports from legacy to absolute style

* fix(tool): rewrite confused by prefixing packages

When a package was a prefix of another one, it broke.
Fixed that by using a proper regular expression. Added a test to make sure it
works as expected

* Update cmd/jb/init.go

* fix: exclude local packages from legacy linking

They actually still use the old style, which is fine. LegacyLinking
messed them up, but from now on it just ignores symlinks that match a localPackage.
2020-01-24 08:02:34 +01:00
sh0rez
376432fadd
feat(cli): version flag (#60)
* feat(cli): version flag

Adds a --version flag to jb. Only available on go versions greater than 1.12

* style: add license headers

* chore(ci): generate only on latest go

* fix: unique step names

* doc: include version in README help text

* fix: rebuild .drone.yml using drone.cli

* fix: remove race condidion from CI
2019-12-14 16:40:30 +01:00
Viktor Erpylev
7b564ae8b5 Add install instructions to README.md (#54) 2019-11-08 15:45:20 +01:00
Frederic Branczyk
c734431ebd
Update README.md
Add design doc
2019-08-13 15:27:02 +02:00
Matthias Loibl
d3bb1f4ea4
Use URI as name for packages location paths 2019-08-12 18:02:21 +02:00
Matthias Loibl
e655fcaf60
Update README.md with new args name 2019-07-23 15:09:58 -07:00
Matthias Loibl
e45b3ee5f6
Release v0.1.0 2019-04-23 17:03:40 +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
35b10d3381
Add update command 2018-07-25 13:58:07 +02:00
Frederic Branczyk
74c4caa0cf
Add correct lockfile handling 2018-07-25 13:57:37 +02:00
Frederic Branczyk
cb59934d1d
Initial commit 2018-04-24 16:01:37 +01:00