tvl-depot/tools
Vincent Ambo cecc249c96 feat(tools/magrathea): add weirdly overengineered target spec parser
i'm not sure what happened here, but it works (yes, the fancy target
printing is completely unnecessary, but oh well):

    #;152> (parse-target "foo")
    #target(foo)

    #;153> (parse-target "//foo")
    #target(//foo)

    #;154> (parse-target "//foo/bar")
    #target(//foo/bar)

    #;155> (parse-target "//foo/bar/")
    #target(//foo/bar)

    #;156> (parse-target "//foo/bar:baz")
    #target(//foo/bar:baz)

    #;157> (parse-target "//foo/bar/:baz")
    #target(//foo/bar:baz)

    #;158> (parse-target "//foo/bar:")
    (error . "unexpected end of input while parsing virtual target")

    #;159> (parse-target "//foo//")
    (error . "unexpected root-anchor while parsing normal target")

the most notable thing is that trailing slashes are allowed in the
physical targets, since people may be autocompleting these on the
shell from folder names.

Change-Id: I32975ad77fe2a327130dc9574011fe92cce49f84
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4393
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Reviewed-by: wpcarro <wpcarro@gmail.com>
2021-12-17 20:48:35 +00:00
..
cheddar chore(tools/cheddar): update dependencies 2021-10-11 14:28:43 +00:00
depot-scanner chore: Add meta.ci=false to various broken projects 2020-08-26 23:49:32 +00:00
emacs-pkgs fix(tvl.el): Replace fifth with nth 4 2021-12-15 23:30:59 +00:00
magrathea feat(tools/magrathea): add weirdly overengineered target spec parser 2021-12-17 20:48:35 +00:00
nsfv-setup refactor(third_party): Consistent use of depot.third_party vs. pkgs 2021-04-10 11:48:55 +00:00
rust-crates-advisory refactor(readTree): Move 'drvTargets' into readTree 2021-11-23 14:42:08 +00:00
tvlc fix(tvlc): Do not call mkDerivation in default.nix 2020-08-26 23:49:32 +00:00
depot-build.nix fix(tools/depot-build): handle multiple levels of subdirectories 2020-08-05 22:31:47 +00:00
depot-nixpkgs-update.nix chore(3p): bump NixOS channels to 2021-12-15 2021-12-15 17:43:52 +00:00
eprintf.nix feat(tools): add rust-crates-advisory 2021-05-17 23:00:57 +00:00
gerrit-cli.nix fix(gerrit-cli): don't output the path to SSH if it's on the path 2020-06-21 23:49:30 +00:00
gerrit-update.nix feat(gerrit-update): Add helper script for updating Gerrit schema 2020-11-29 11:50:58 +00:00
hash-password.nix chore(nixpkgs): Bump channels to 2021-05-25 2021-05-25 17:09:28 +00:00
perf-flamegraph.nix fix(tools/perf-flamegraph): Get rid of most 'unknown's 2020-07-16 00:37:29 +00:00