Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
ab4cbe72
Commit
ab4cbe72
authored
Apr 06, 2016
by
Eric Chiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
schema: fix generator script to work with vendor directory
parent
74169294
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
generator
schema/generator
+10
-3
No files found.
schema/generator
View file @
ab4cbe72
...
@@ -33,8 +33,15 @@ fi
...
@@ -33,8 +33,15 @@ fi
$
GENDOC
--
f
$
IN
--
o
$
DOC
$
GENDOC
--
f
$
IN
--
o
$
DOC
#
See
schema
/
generator_import
.
go
for
instructions
on
updating
the
dependency
#
Though
google
-
api
-
go
-
generator
is
a
main
,
dex
vendors
the
app
using
the
same
PKG
=
"google.golang.org/api/google-api-go-generator"
#
tool
it
uses
to
vendor
third
party
packages
.
Hence
,
it
can
be
found
in
the
#
"vendor"
directory
.
#
#
This
vendoring
is
currently
done
with
godep
,
but
may
change
if
/
when
we
move
to
#
another
tool
.
#
#
See
schema
/
generator_import
.
go
for
instructions
on
updating
the
dependency
.
PKG
=
"github.com/coreos/dex/vendor/google.golang.org/api/google-api-go-generator"
#
First
,
write
the
discovery
document
into
a
go
file
so
it
can
be
served
statically
by
the
API
#
First
,
write
the
discovery
document
into
a
go
file
so
it
can
be
served
statically
by
the
API
cat
<<
EOF
>
"${OUT}"
cat
<<
EOF
>
"${OUT}"
...
@@ -53,7 +60,7 @@ echo -n '`' >> "${OUT}"
...
@@ -53,7 +60,7 @@ echo -n '`' >> "${OUT}"
#
Now
build
google
-
api
-
go
-
generator
-
we
vendor
so
this
is
consistently
reproducible
#
Now
build
google
-
api
-
go
-
generator
-
we
vendor
so
this
is
consistently
reproducible
GEN_PATH
=
"bin/google-api-go-generator"
GEN_PATH
=
"bin/google-api-go-generator"
if
[
! -f ${GEN_PATH} ]; then
if
[
! -f ${GEN_PATH} ]; then
GOPATH
=
"${PWD}/Godeps/_workspace"
go
build
-
o
${
GEN_PATH
}
${
PKG
}
go
build
-
o
${
GEN_PATH
}
${
PKG
}
fi
fi
#
Build
the
bindings
#
Build
the
bindings
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment