Skip to content

storage: tests fail when using modules #1138

@hdonnay

Description

@hdonnay

Client

storage

Describe Your Environment

A program using modules:

#!/bin/sh
set -ex
t=$(mktemp -d)
trap 'rm -r $t' EXIT
cd $t
cat >ex.go <<.
package main

import (
	_ "cloud.google.com/go/storage"
)

func main() {
	println("example")
}
.
go mod init example
go get github.com/google/martian@master # broken
go test all

Expected Behavior

tests pass

Actual Behavior

2018/09/06 13:57:37 creating bucket "go-integration-test-20180906-64657522195962-0001": googleapi: Error 400: Unknown project id: , invalid
FAIL	cloud.google.com/go/storage	0.481s

(golang.org/x/sys/unix also fails, but that's out-of-scope)

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions