)]}'
{
  "commit": "1f0547c4ec4fe18d46192d8c670190111b1d3d79",
  "tree": "e4916df6ac044d2c911dbdbf559d52bb40369edf",
  "parents": [
    "e5407501cb5c43f9ba874fe5dad215435acbf5a2"
  ],
  "author": {
    "name": "Russ Cox",
    "email": "rsc@golang.org",
    "time": "Wed Apr 27 09:02:52 2022 -0400"
  },
  "committer": {
    "name": "Russ Cox",
    "email": "rsc@golang.org",
    "time": "Fri Apr 29 14:23:21 2022 +0000"
  },
  "message": "[dev.boringcrypto] cmd/go: pass dependency syso to cgo too\n\nProposal #42477 asked for a way to apply conditional build tags\nto syso files (which have no source code to hold //go:build lines).\n\nWe ended up suggesting that the standard answer should be to\nput the syso in its own package and then import that package from\na source file that is itself conditionally compiled.\n\nA followup comment on that issue pointed out a problem that I did\nnot understand until I tried to use this approach myself: the cgo\nbuild fails by default, because the link step only uses syso files from\nthe current package. You have to override this explicitly by arranging\nto pass a “ignore unresolved symbols” flag to the host linker.\nMany users will not know how to do this.\n(I don\u0027t know how to do this off the top of my head.)\n\nIf we want users to use this approach, we should make it work better.\nThis CL does that, by including the syso files from dependencies of\nthe current package in the link step.\n\nFor #51940.\n\nChange-Id: I53a0371b2df17e39a000a645b7686daa6a98722d\nReviewed-on: https://go-review.googlesource.com/c/go/+/402596\nReviewed-by: Ian Lance Taylor \u003ciant@google.com\u003e\nRun-TryBot: Russ Cox \u003crsc@golang.org\u003e\nTryBot-Result: Gopher Robot \u003cgobot@golang.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0b8e5d2330e1e827c1d6a79ff9871d8aee5dabe3",
      "old_mode": 33188,
      "old_path": "src/cmd/go/internal/work/exec.go",
      "new_id": "6ecd4dcf2cf60a0f5173b9d7c683d82deb9499f7",
      "new_mode": 33188,
      "new_path": "src/cmd/go/internal/work/exec.go"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7b458b0826a3089f97bc3740810c756900204ae1",
      "new_mode": 33188,
      "new_path": "src/cmd/go/testdata/script/link_syso_deps.txt"
    }
  ]
}
