Skip to content

Commit

Permalink
Merge pull request #1263 from getlantern/colin/do-not-import-lantern-…
Browse files Browse the repository at this point in the history
…cloud-please-please-please

Update ProxyConfig to point at the shared version instead of lantern-cloud
  • Loading branch information
lincolnmantracer authored Oct 19, 2022
2 parents 7f9b429 + 1a6f4d0 commit 15a208d
Show file tree
Hide file tree
Showing 67 changed files with 982 additions and 245 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
DISABLE_PORT_RANDOMIZATION ?=

SHELL := /bin/bash
SOURCES := $(shell find . -name '*[^_test].go')
PROTO_SOURCES = $(shell find . -name '*.proto')
GENERATED_PROTO_SOURCES = $(shell echo "$(PROTO_SOURCES)" | sed 's/\.proto/\.pb\.go/g')
SOURCES = $(GENERATED_PROTO_SOURCES) $(shell find . -name '*[^_test].go')

REVISION_DATE := $(shell git log -1 --pretty=format:%ad --date=format:%Y%m%d.%H%M%S)
BUILD_DATE := $(shell date -u +%Y%m%d.%H%M%S)

VERSION ?= $$VERSION
LDFLAGS := -s -w -X github.com/getlantern/flashlight/common.RevisionDate=$(REVISION_DATE) -X github.com/getlantern/flashlight/common.BuildDate=$(BUILD_DATE) -X github.com/getlantern/flashlight/common.CompileTimePackageVersion=$(VERSION)

%.pb.go: %.proto
protoc --go_out=. --go_opt=paths=source_relative $<

test-and-cover: $(SOURCES)
@echo "mode: count" > profile.cov && \
TP=$$(go list ./...) && \
Expand Down
Loading

0 comments on commit 15a208d

Please sign in to comment.