Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Issue 1375553003: go: Roll Goopfile, remove two no longer used packages. (Closed)

Created:
5 years, 2 months ago by Vadim Sh.
Modified:
5 years, 2 months ago
CC:
chromium-reviews, infra-reviews+infra_chromium.org
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

go: Roll Goopfile, remove two no longer used packages. Also add a script that detects what packages can be removed, plus instructions how to use it. Removed packages: github.com/bradfitz/http2 - have been merged into golang.org/x/net (yay!) github.com/howeyc/fsnotify - have been replaced by gopkg.in/fsnotify.v0 R=nodir@chromium.org, tandrii@chromium.org BUG= Committed: https://chromium.googlesource.com/infra/infra/+/bee88f60dcfb792f873d2bffda7244d80f635f63

Patch Set 1 #

Total comments: 26

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -36 lines) Patch
M go/Goopfile View 1 2 chunks +15 lines, -17 lines 0 comments Download
M go/Goopfile.lock View 1 2 chunks +15 lines, -17 lines 0 comments Download
M go/README.md View 1 chunk +20 lines, -0 lines 0 comments Download
A go/clean_goop.py View 1 1 chunk +115 lines, -0 lines 0 comments Download
M go/roll_goop.py View 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
Vadim Sh.
5 years, 2 months ago (2015-09-28 22:26:05 UTC) #1
Vadim Sh.
https://codereview.chromium.org/1375553003/diff/1/go/roll_goop.py File go/roll_goop.py (left): https://codereview.chromium.org/1375553003/diff/1/go/roll_goop.py#oldcode28 go/roll_goop.py:28: 'github.com/luci/gkvlite': 'refs/heads/32bitKeys', oh, it's no longer exceptions, Robbie fixed ...
5 years, 2 months ago (2015-09-28 22:27:49 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1375553003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1375553003/1
5 years, 2 months ago (2015-09-28 22:29:45 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-09-28 22:33:56 UTC) #6
tandrii(chromium)
lgtm % if you add caching and convince me otherwise. https://codereview.chromium.org/1375553003/diff/1/go/clean_goop.py File go/clean_goop.py (right): https://codereview.chromium.org/1375553003/diff/1/go/clean_goop.py#newcode35 ...
5 years, 2 months ago (2015-09-29 10:17:28 UTC) #7
nodir
https://codereview.chromium.org/1375553003/diff/1/go/clean_goop.py File go/clean_goop.py (right): https://codereview.chromium.org/1375553003/diff/1/go/clean_goop.py#newcode23 go/clean_goop.py:23: GO_DIR = os.path.dirname(os.path.abspath(__file__)) You can check that $GOROOT equals ...
5 years, 2 months ago (2015-09-29 16:46:05 UTC) #8
Vadim Sh.
also rerolled deps, they have already changed https://codereview.chromium.org/1375553003/diff/1/go/clean_goop.py File go/clean_goop.py (right): https://codereview.chromium.org/1375553003/diff/1/go/clean_goop.py#newcode23 go/clean_goop.py:23: GO_DIR = ...
5 years, 2 months ago (2015-09-29 19:49:34 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1375553003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1375553003/20001
5 years, 2 months ago (2015-09-29 19:54:44 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Infra Win Tester on tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Infra%20Win%20Tester/builds/318)
5 years, 2 months ago (2015-09-29 20:04:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1375553003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1375553003/20001
5 years, 2 months ago (2015-09-29 20:21:31 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/infra/infra/+/bee88f60dcfb792f873d2bffda7244d80f635f63
5 years, 2 months ago (2015-09-29 20:26:07 UTC) #17
nodir
https://codereview.chromium.org/1375553003/diff/1/go/clean_goop.py File go/clean_goop.py (right): https://codereview.chromium.org/1375553003/diff/1/go/clean_goop.py#newcode37 go/clean_goop.py:37: cmd = ['go', 'list', '-f', '{{ join .Deps "\\n" ...
5 years, 2 months ago (2015-09-29 20:39:13 UTC) #18
nodir
On 2015/09/29 20:39:13, nodir wrote: > https://codereview.chromium.org/1375553003/diff/1/go/clean_goop.py > File go/clean_goop.py (right): > > https://codereview.chromium.org/1375553003/diff/1/go/clean_goop.py#newcode37 > ...
5 years, 2 months ago (2015-09-29 20:39:44 UTC) #19
nodir
5 years, 2 months ago (2015-09-29 20:44:01 UTC) #20
Message was sent while issue was closed.
On 2015/09/29 20:39:44, nodir wrote:
> On 2015/09/29 20:39:13, nodir wrote:
> > https://codereview.chromium.org/1375553003/diff/1/go/clean_goop.py
> > File go/clean_goop.py (right):
> > 
> > https://codereview.chromium.org/1375553003/diff/1/go/clean_goop.py#newcode37
> > go/clean_goop.py:37: cmd = ['go', 'list', '-f', '{{ join .Deps "\\n" }}',
> > pkg_glob]
> > On 2015/09/29 19:49:34, Vadim Sh. wrote:
> > > On 2015/09/29 16:46:05, nodir wrote:
> > > > this must be ran with GO_DIR as current dir, because you pass a rel path
> in
> > > > pkg_glob
> > > > 
> > > relpath(...) below builds correct path regardless of current directory. It
> can
> > > become incorrect only if roll_goop.py scrip itself changed cwd, and it
> > doesn't.
> > > 
> > > > alternatively, just run
> > > > 
> > > > GOPATH=$GOROOT go list all
> > > > 
> > > > when want to ignore vendored packages. (I think it is simpler)
> > > 
> > > GOROOT is goland SDK, not src/...

Right, I meant GO_DIR

> > 
> > I just ran go/clean_goop.py from root and it errors out:
> > 
> > Traceback (most recent call last):
> >   File "go/clean_goop.py", line 116, in <module>
> >     sys.exit(main())
> >   File "go/clean_goop.py", line 82, in main
> >     assert go_dir_rel.startswith('.')
> > AssertionError
> > 
> > because go_dir_rel == `go`.
> > 
> > I mentioned cwd because go.relpath with one parameter ultimately depends on
> cwd
> 
> I meant os.path.relpath

Powered by Google App Engine
This is Rietveld 408576698