mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Copy vendored deps manually instead of using Godeps.
We were using Godep incorrectly (cloning repos from the internet during build time instead of including Godeps/_workspace in the GOPATH via "godep go"). However, to avoid even having to fetch "godeps" from the internet during build, this now just copies the vendored files into the GOPATH. Also, the protocol buffer library moved from Google Code to GitHub, which is reflected in these updates. This fixes https://github.com/prometheus/prometheus/issues/525
This commit is contained in:
parent
4d135b8b36
commit
af627bb2b9
9
Godeps/Godeps.json
generated
9
Godeps/Godeps.json
generated
|
@ -1,11 +1,10 @@
|
|||
{
|
||||
"ImportPath": "github.com/prometheus/prometheus",
|
||||
"GoVersion": "go1.4",
|
||||
"GoVersion": "go1.4.1",
|
||||
"Deps": [
|
||||
{
|
||||
"ImportPath": "code.google.com/p/goprotobuf/proto",
|
||||
"Comment": "go.r60-152",
|
||||
"Rev": "36be16571e14f67e114bb0af619e5de2c1591679"
|
||||
"ImportPath": "github.com/golang/protobuf/proto",
|
||||
"Rev": "5677a0e3d5e89854c9974e1256839ee23f8233ca"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/golang/glog",
|
||||
|
@ -13,7 +12,7 @@
|
|||
},
|
||||
{
|
||||
"ImportPath": "github.com/matttproud/golang_protobuf_extensions/ext",
|
||||
"Rev": "7a864a042e844af638df17ebbabf8183dace556a"
|
||||
"Rev": "ba7d65ac66e9da93a714ca18f6d1bc7a0c09100c"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/miekg/dns",
|
||||
|
|
|
@ -21,8 +21,8 @@ import (
|
|||
"testing"
|
||||
"testing/quick"
|
||||
|
||||
. "code.google.com/p/goprotobuf/proto"
|
||||
. "code.google.com/p/goprotobuf/proto/testdata"
|
||||
. "github.com/golang/protobuf/proto"
|
||||
. "github.com/golang/protobuf/proto/testdata"
|
||||
)
|
||||
|
||||
func TestWriteDelimited(t *testing.T) {
|
||||
|
|
2
Godeps/_workspace/src/github.com/matttproud/golang_protobuf_extensions/ext/decode.go
generated
vendored
2
Godeps/_workspace/src/github.com/matttproud/golang_protobuf_extensions/ext/decode.go
generated
vendored
|
@ -19,7 +19,7 @@ import (
|
|||
"errors"
|
||||
"io"
|
||||
|
||||
"code.google.com/p/goprotobuf/proto"
|
||||
"github.com/golang/protobuf/proto"
|
||||
)
|
||||
|
||||
var errInvalidVarint = errors.New("invalid varint32 encountered")
|
||||
|
|
2
Godeps/_workspace/src/github.com/matttproud/golang_protobuf_extensions/ext/encode.go
generated
vendored
2
Godeps/_workspace/src/github.com/matttproud/golang_protobuf_extensions/ext/encode.go
generated
vendored
|
@ -18,7 +18,7 @@ import (
|
|||
"encoding/binary"
|
||||
"io"
|
||||
|
||||
"code.google.com/p/goprotobuf/proto"
|
||||
"github.com/golang/protobuf/proto"
|
||||
)
|
||||
|
||||
// WriteDelimited encodes and dumps a message to the provided writer prefixed
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright 2010 The Go Authors. All rights reserved.
|
||||
// http://code.google.com/p/goprotobuf/
|
||||
// http://github.com/golang/protobuf/
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
|
@ -30,11 +30,11 @@
|
|||
package ext
|
||||
|
||||
import (
|
||||
. "code.google.com/p/goprotobuf/proto"
|
||||
. "code.google.com/p/goprotobuf/proto/testdata"
|
||||
. "github.com/golang/protobuf/proto"
|
||||
. "github.com/golang/protobuf/proto/testdata"
|
||||
)
|
||||
|
||||
// FROM https://code.google.com/p/goprotobuf/source/browse/proto/all_test.go.
|
||||
// FROM https://github.com/golang/protobuf/blob/master/proto/all_test.go.
|
||||
|
||||
func initGoTestField() *GoTestField {
|
||||
f := new(GoTestField)
|
||||
|
|
3
Makefile
3
Makefile
|
@ -66,8 +66,7 @@ config: dependencies
|
|||
$(MAKE) -C config
|
||||
|
||||
dependencies: $(GOCC) $(FULL_GOPATH)
|
||||
$(GO) get github.com/tools/godep
|
||||
$(GODEP) restore
|
||||
cp -a $(CURDIR)/Godeps/_workspace/src/* $(GOPATH)/src
|
||||
$(GO) get -d
|
||||
|
||||
documentation: search_index
|
||||
|
|
|
@ -47,7 +47,6 @@ GOCC = $(GOROOT)/bin/go
|
|||
TMPDIR = /tmp
|
||||
GOENV = TMPDIR=$(TMPDIR) GOROOT=$(GOROOT) GOPATH=$(GOPATH)
|
||||
GO = $(GOENV) $(GOCC)
|
||||
GODEP = $(GOENV) $(GOPATH)/bin/godep
|
||||
GOFMT = $(GOROOT)/bin/gofmt
|
||||
|
||||
UNAME := $(shell uname)
|
||||
|
|
2
NOTICE
2
NOTICE
|
@ -38,7 +38,7 @@ Copyright jQuery Foundation and other contributors
|
|||
Licensed under the MIT License
|
||||
|
||||
Go support for Protocol Buffers - Google's data interchange format
|
||||
http://code.google.com/p/goprotobuf/
|
||||
http://github.com/golang/protobuf/
|
||||
Copyright 2010 The Go Authors
|
||||
See source code for license details.
|
||||
|
||||
|
|
|
@ -18,5 +18,5 @@ SUFFIXES:
|
|||
include ../Makefile.INCLUDE
|
||||
|
||||
generated/config.pb.go: config.proto
|
||||
$(GO_GET) code.google.com/p/goprotobuf/protoc-gen-go
|
||||
$(GO) get github.com/golang/protobuf/protoc-gen-go
|
||||
$(PROTOC) --proto_path=$(PREFIX)/include:. --go_out=generated/ config.proto
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"regexp"
|
||||
"time"
|
||||
|
||||
"code.google.com/p/goprotobuf/proto"
|
||||
"github.com/golang/protobuf/proto"
|
||||
|
||||
clientmodel "github.com/prometheus/client_golang/model"
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ It has these top-level messages:
|
|||
*/
|
||||
package io_prometheus
|
||||
|
||||
import proto "code.google.com/p/goprotobuf/proto"
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
|
|
@ -16,7 +16,7 @@ package config
|
|||
import (
|
||||
"io/ioutil"
|
||||
|
||||
"code.google.com/p/goprotobuf/proto"
|
||||
"github.com/golang/protobuf/proto"
|
||||
|
||||
pb "github.com/prometheus/prometheus/config/generated"
|
||||
)
|
||||
|
|
|
@ -17,7 +17,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"code.google.com/p/goprotobuf/proto"
|
||||
"github.com/golang/protobuf/proto"
|
||||
|
||||
clientmodel "github.com/prometheus/client_golang/model"
|
||||
|
||||
|
|
Loading…
Reference in a new issue