Stick the following in your ~/.bash_profile
:
function tidyall {
for i in `find . -name go.mod`; do
pushd `dirname $i`;
go mod tidy;
popd;
done
}
// // Copyright 2019 The Go Authors. All rights reserved. | |
// // Use of this source code is governed by the Apache 2.0 | |
// // license that can be found in the LICENSE file. | |
package main_test | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" |
deklerk at deklerk-macbookpro2 in ~/workspace/google-cloud-go/storage on master | |
$ gotr TestIntegration_BucketUpdate | |
=== RUN TestIntegration_BucketUpdate | |
--- PASS: TestIntegration_BucketUpdate (2.33s) | |
=== RUN TestIntegration_BucketUpdate | |
--- FAIL: TestIntegration_BucketUpdate (0.26s) | |
integration_test.go:307: bucket should not have labels initially | |
FAIL | |
2019/10/18 10:56:31 deleting bucket "go-integration-test-20191003-77004343053000-0001", which is more than 24h0m0s old | |
2019/10/18 10:56:31 deleting bucket "go-integration-test-20191010-77286384765000-0001", which is more than 24h0m0s old |
package main | |
func main() { | |
ctx := context.Background() | |
db := &db.Client{} | |
tx, err := db.Begin() | |
if err != nil { | |
return err | |
} |
deklerk at deklerk in /tmp | |
$ git clone https://code.googlesource.com/gocloud foo | |
Cloning into 'foo'... | |
remote: Sending approximately 25.45 MiB ... | |
remote: Counting objects: 187, done | |
remote: Finding sources: 100% (177/177) | |
remote: Total 28362 (delta 15140), reused 28335 (delta 15140) | |
Receiving objects: 100% (28362/28362), 25.46 MiB | 24.43 MiB/s, done. | |
Resolving deltas: 100% (15140/15140), done. | |
deklerk at deklerk in /tmp |
deklerk at deklerk-macbookpro2 in /tmp | |
$ git clone https://code.googlesource.com/gocloud foo | |
Cloning into 'foo'... | |
remote: Sending approximately 25.45 MiB ... | |
remote: Counting objects: 187, done | |
remote: Finding sources: 100% (177/177) | |
remote: Total 28362 (delta 15140), reused 28335 (delta 15140) | |
Receiving objects: 100% (28362/28362), 25.46 MiB | 953.00 KiB/s, done. | |
Resolving deltas: 100% (15140/15140), done. | |
deklerk at deklerk-macbookpro2 in /tmp |
package main | |
import ( | |
"context" | |
"fmt" | |
"cloud.google.com/go/logging/logadmin" | |
"google.golang.org/api/iterator" | |
) |
Stick the following in your ~/.bash_profile
:
function tidyall {
for i in `find . -name go.mod`; do
pushd `dirname $i`;
go mod tidy;
popd;
done
}
Stick the following in your `~/.bash_profile`: | |
``` | |
function tidyall { | |
for i in `find . -name go.mod`; do | |
pushd `dirname $i`; | |
go mod tidy; | |
popd; | |
done | |
} |
rdeklerk at deklerk-macbookpro2 in ~/workspace/google-cloud-java/google-cloud-testing/storage-benchwrapper on benchwrapper* | |
$ rm -rf target | |
deklerk at deklerk-macbookpro2 in ~/workspace/google-cloud-java/google-cloud-testing/storage-benchwrapper on benchwrapper* | |
$ mvn exec:java -DskipTests=true -Dport=8081 | |
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Detecting the operating system and CPU architecture | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] os.detected.name: osx | |
[INFO] os.detected.arch: x86_64 |
deklerk at deklerk-macbookpro2 in ~/workspace/nodejs-storage on benchwrapper | |
$ npm run fix | |
> @google-cloud/[email protected] fix /Users/deklerk/workspace/nodejs-storage | |
> gts fix && eslint --fix '**/*.js' | |
/Users/deklerk/workspace/nodejs-storage/bin/benchwrapper.js | |
1:22 error "grpc" is extraneous node/no-extraneous-require | |
2:29 error "@grpc/proto-loader" is extraneous node/no-extraneous-require |