commit | deed3228ea3b6e21db77914a19b4c1cb6bad7b14 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Sat Feb 25 16:06:47 2023 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Mon Feb 27 16:23:10 2023 +0000 |
tree | 29588cd8f7c7d482e3fe4abcd6039edfbfa379eb | |
parent | e06362d696d9d3a7676bd5d3492741d54564b6a0 [diff] |
internal/sandbox: generalize the API Change the sandbox API so it is more like os/exec, where one constructs a Cmd and then calls Output to get the output. This not only makes the API more familiar, it also generalizes it: now it is possible to set the working directory and environment for binaries run in the sandbox. Change-Id: I12972b5a553d98c002c61ef98b0eb690efeb9257 Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/471416 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Maceo Thompson <maceothompson@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com>
This repository contains code that serves pkg.go.dev/metrics.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/pkgsite-metrics:” in the subject line, so it is easy to find.