ARC-Seal: i=2; a=rsa-sha256; t=1528495680; cv=pass; d=google.com; s=arc-20160816; b=fZ+IzdP83X1R+9yKheUqqjsHaGjT3Nhxk/uQAkGMKfFqtuKTaF157sr8TDnwCOX5vA QKEkohLShV9HOnaSx3+aruDVneFBMbIHCxUWFlHVabVs6oyzZMcwloLP4Mo6lLlMgSVT iadotvz048ROULlILanOBCjyv1DeM15q4On4Nc8hbjgWHPV0lZ1uiOZijZBMROZ6Zykb R5P5ZwUyktEy5EUZsWNdpRs6JApr9yjhfjeycyAfsVApIpI0m8xXxSAVRqBbWiskB9Go k37aAPw1EUUCp+LBIRY5gO/txlGoFv14ND+SryEmp739h1FnNefdzeNQBt4NGRjcBnZK 6A4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:arc-authentication-results :arc-message-signature:sender:dkim-signature:dkim-signature :arc-authentication-results; bh=yi3Ss8W7nF3Ufus3PeF3HWx+oTSlSK0YpUl5kJvPDaw=; b=bwvJuWAyaFQx0db9dli+71Qji08JUV49xN5/8P2wSc4mE3+Ty2GEoov1m02HEk4j+o wKciZjatzd1pMy0s9dKr65k+JzkzT4BMHvGIXAdEUcXUR164GJmSGtr4EtK0GJHyjyli hlA+zfmJVYwDskADea2qme70gdkpb87kKPxe2GRadoXlf9hRDsmBHF7jqSPRlmEFeScy eTfYhJcfG7VhxdGk2m5gS9mw3nEdsYk3r03fF0Ht4cpSwRzoYOZbm4wYH21sbgin+c8n RACi68GQyAqFlNRuMG8UI97Q/vO1MHse5VS+AwyC/mDWqgkPG16jmtGmx8UJIATVHHOW AQhA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fvyb+VIF; spf=pass (google.com: domain of rminnich@gmail.com designates 2607:f8b0:4001:c06::22f as permitted sender) smtp.mailfrom=rminnich@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Sender: golang-dev@googlegroups.com ARC-Seal: i=1; a=rsa-sha256; t=1528495679; cv=none; d=google.com; s=arc-20160816; b=K/i+RBbzBqKD5KjaONqM9dKR6B6Narl6mu9ebUXCESYFbrUkYuWrtfJyAERsk1XPOS 2W6pOLNBeTI0llHEMAvM7JcoYr/F+OWzfzDa7XJFqyZCZ6UNgge0xahAJxHGJLPQ9Xv7 EkX7Av31BWXiIKApR01YGnw4WFB5OEjxNJe/iYoJxJvfcBportjHQNVPaND7ofzlruVC qWmYs0KuIV4ur0TXm5A8gzXFnNeux85A+Q2FJlGadJDUxo4uV+X09Zp1zf3UefjFSTbZ 68ad6G+rBX2q8ZZ1EqSEmUWhkR2QcXe/D22tjO1z/VK+utZk9C9TKTVpeLd7y5EzzTKZ ywzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature:arc-authentication-results; bh=kCWU8xO96ONU5rWpvLzUXBwXvOI8Jg5G1BgMyweqVbc=; b=VtL0RL+XJr2EdAmDrvQAp0+3z5jfv+m5ilFJc9BWtdlJ6vWL/cwBWGPH3Mz2T9IAd8 4PDS06RXdpNIu6aVd/cRzB0dVopqGZnrFyOnMumi1nhDyNwJOB05advO3TM+ljlgkMsd rc3gSzXXkZD7FehPQo/aMzv/aXGAdhERM0cqqfc/9+R+f8eJlnKN+5WN2pq9r2n9YBxh 3ZuJ/q47XR3Dvz1RDZgz+NcUbNvN3kCcpQo9a3iEOQ9VHHcn57+0lRe+OBIewJJQ1jRH fcjSgUJkmvn7FSLMRVC8ilzQvmTuvBJwcvoFpV4NyBfXfP/9t31zGRLkXRjz/gkgfXn3 YyKw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Fvyb+VIF; spf=pass (google.com: domain of rminnich@gmail.com designates 2607:f8b0:4001:c06::22f as permitted sender) smtp.mailfrom=rminnich@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received-SPF: pass (google.com: domain of rminnich@gmail.com designates 2607:f8b0:4001:c06::22f as permitted sender) client-ip=2607:f8b0:4001:c06::22f; From: ron minnich Date: Fri, 8 Jun 2018 16:07:46 -0600 Subject: Re: [golang-dev] Proposed change to format of "go version" To: Brad Fitzpatrick Cc: David Chase , Russ Cox , golang-dev Mailing-list: list golang-dev@googlegroups.com; contact golang-dev+owners@googlegroups.com if it can come out as JSON that would be helpful on our projects On Fri, Jun 8, 2018 at 11:02 AM Brad Fitzpatrick wrote: > New const alongside TheVersion in runtime/internal/sys written by dist at > the same time/place as the Version? > > And then some internal package that go/build could depend on to access it, > possibly with some //go:linkname magic if needed? > > Neither internal/bytealg or internal/cpu or internal/poll sound > appropriate, so maybe we just need a new package. internal/buildinfo ? > > > On Fri, Jun 8, 2018 at 8:45 AM, David Chase wrote: > >> Is there an approved or usual method for this? I can go looking, but if >> you already know the answer that's even better. >> >> On Fri, Jun 8, 2018 at 11:40 AM Brad Fitzpatrick >> wrote: >> >>> >>> >>> On Fri, Jun 8, 2018 at 8:11 AM, 'David Chase' via golang-dev < >>> golang-dev@googlegroups.com> wrote: >>> >>>> Are we happy with an extra invocation of "go tool compile -V" in "go >>>> build" and "go test" to get our hands on that flag, for purposes of using >>>> it as a build tag? >>>> >>> >>> Those aren't the only choices. You can put it in the binaries elsewhere >>> such that go/build can access it, >>> without shelling out to other programs and without shoving it in Version. >>> >>> >>> > -- > You received this message because you are subscribed to the Google Groups > "golang-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-dev+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.