)]}' { "commit": "f17229e696bd4e065144fd6ae1313e41515abbdc", "tree": "c0a97729ad05d813c170a1e7835cbc63601b742e", "parents": [ "0405dc783f0a9c4dbf56901f56e49fa485943f4c" ], "author": { "name": "Bryan C. Mills", "email": "bcmills@google.com", "time": "Fri Feb 07 13:55:53 2020 -0500" }, "committer": { "name": "Bryan C. Mills", "email": "bcmills@google.com", "time": "Fri Feb 07 19:21:55 2020 +0000" }, "message": "cmd/txtar: add a minimal command for creating txtar archives\n\nI\u0027ve been working on a design doc for a lazy module loading algorithm,\nand I want to be able to present examples as txtar archives (because\nthat\u0027s what the eventual integration tests will be anyway).\n\nBut I also want to be able to run the \u0027go\u0027 command interactively in\nthose archives (to figure out what the behavior today is and how it\nwould change), and if I decide that I need to change the example it\nbecomes tedious to edit it locally and then repackage it.\n\nThis change adds a minimal binary for constructing and unpacking\narchives. The comment section (which is usually relevant to the test)\nand the archive itself are passed on stdin and stdout, and files are\nread or written relative to the working directory of the command. A\nlist of files and/or directories can be passed explicitly at creation\ntime (to bypass extraneous files such as Git metadata).\n\nSince the cmd/go tests in many cases use paths relative to the $WORK\nor $GOPATH variables, this binary expands shell variables during both\ncreation and extraction.\n\nA similar set of utility programs can be found in\ngithub.com/rogpeppe/go-internal/cmd. While those programs are useful,\nthey are somewhat more flag-intensive, do not support shell-escaped\npaths or explicit file lists, and do not extract or accept comment\ntext on stdio and stdout.\n\nChange-Id: Ibfd2f7b308151b5588bba14c9d66c59453fbdbe0\nReviewed-on: https://go-review.googlesource.com/c/exp/+/218498\nRun-TryBot: Bryan C. Mills \u003cbcmills@google.com\u003e\nTryBot-Result: Gobot Gobot \u003cgobot@golang.org\u003e\nReviewed-by: Jay Conrod \u003cjayconrod@google.com\u003e\n", "tree_diff": [ { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "e4171dde9b1b45da46bb7a0d86c9745a1d1dde6d", "new_mode": 33188, "new_path": "cmd/txtar/txtar.go" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "4130336684a85b29cbd8c6982e37b3c4877e883d", "new_mode": 33188, "new_path": "cmd/txtar/txtar_test.go" }, { "type": "modify", "old_id": "84df2a7f117a8a01012f54b2b12f1687ebcbc7c0", "old_mode": 33188, "old_path": "go.mod", "new_id": "bc31db7b473892222b71ad72c3a25d38f0e8ffc2", "new_mode": 33188, "new_path": "go.mod" }, { "type": "modify", "old_id": "67aebad9fa633725023b58d45b27361fd837db9d", "old_mode": 33188, "old_path": "go.sum", "new_id": "9a50bee2d3b84c86327f3ad40b303beee9173cc4", "new_mode": 33188, "new_path": "go.sum" } ] }