Skip to content

Commit

Permalink
add the org's build machinery
Browse files Browse the repository at this point in the history
  • Loading branch information
stlaz committed Jan 13, 2021
1 parent bd0fb7e commit 5691565
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
GO_BUILD_PACKAGES := .

include $(addprefix ./vendor/github.com/openshift/build-machinery-go/make/, \
golang.mk \
targets/openshift/deps.mk \
)

build-examples:
@ for d in `find ./example -maxdepth 1 -mindepth 1 -type d`; do \
echo "building $$d" ; \
go build -race "$$d" ; \
done

clean:
@ for d in `find ./example -maxdepth 1 -mindepth 1 -type d -exec basename {} \; `; do \
echo "removing $$d" ; \
rm -f "$$d" ; \
done
7 changes: 7 additions & 0 deletions dependencymagnet/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// +build tools

// go mod won't pull in code that isn't depended upon, but we have some code we don't depend on from code that must be included
// for our build to work.
package dependencymagnet

import _ "github.com/openshift/build-machinery-go"
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ go 1.15

require (
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/openshift/build-machinery-go v0.0.0-20200917070002-f171684f77ab
github.com/openshift/osincli v0.0.0-20160924135400-fababb0555f2
github.com/pborman/uuid v1.2.0
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
Expand Down

0 comments on commit 5691565

Please sign in to comment.