Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add separate module for the api package #1741

Merged
merged 2 commits into from
Jun 30, 2020
Merged

Conversation

sagikazarmark
Copy link
Member

Fixes #1726

This is a first step, we need to need a v2.0.0 version after merging.

@sagikazarmark sagikazarmark force-pushed the separate-api-package branch from 633eaaa to dad8d6d Compare June 30, 2020 11:11
Copy link
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an expert in go mod shenanigans, but this looks OK to me.

@sagikazarmark
Copy link
Member Author

We should probably emphasize in the next release log to import the API only, but not the app module.

@JoelSpeed
Copy link
Contributor

JoelSpeed commented Jun 30, 2020

Since our vendored modules are checked in, have you run go mod tidy, go mod vendor, go mod verify over this PR? (Do we have a make target for this, we should if not)

Edit: We have one, it's make revendor, doesn't look like it has been run for this PR, we should try to set up some CI to check that

@sagikazarmark
Copy link
Member Author

Good catch.

Actually: can we get rid of vendor? I really don't see the point (images are built without it, quay is down more than github is).

@sagikazarmark
Copy link
Member Author

See #1597

@@ -48,3 +49,5 @@ require (
gopkg.in/square/go-jose.v2 v2.4.1
sigs.k8s.io/testing_frameworks v0.1.2
)

replace github.com/dexidp/dex/api => ./api
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary, what happens if this is removed?

Looks like with this, we will have to revendor (if we are keeping that) every time this changes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is necessary. If it is removed, go mod will try to download it from GitHub.

I don't think the api changes that much, but vendoring is not used when building the final image, so no harm done if we don't revendor. :)

@sagikazarmark sagikazarmark merged commit df34848 into master Jun 30, 2020
@sagikazarmark sagikazarmark deleted the separate-api-package branch June 30, 2020 16:49
xtremerui pushed a commit to concourse/dex that referenced this pull request Oct 5, 2020
The official docker release for this release can be pulled from

    dexidp/dex:v2.25.0

**Features:**

- Move the API package to a separate module (dexidp#1741, @sagikazarmark)
- OAuth2 Device Authorization Grant (dexidp#1706, @justin-slowik)
- Support username, email and groups claim in OIDC connector (dexidp#1634, @xtremerui)

**Bugfixes:**

- Add offline_access scope in microsoft connector, if required (dexidp#1441, @jimmythedog)
- Allow the google connector to work without a service account (dexidp#1720, @candlerb)

**Minor changes:**

- Remove vendor (finally) (dexidp#1745, @sagikazarmark)
- Fix the LDAP example (dexidp#1762, @heidemn-faro)
- Relocate the example app (dexidp#1764, @sagikazarmark)
xtremerui pushed a commit to concourse/dex that referenced this pull request Nov 5, 2020
The official docker release for this release can be pulled from

    dexidp/dex:v2.25.0

**Features:**

- Move the API package to a separate module (dexidp#1741, @sagikazarmark)
- OAuth2 Device Authorization Grant (dexidp#1706, @justin-slowik)
- Support username, email and groups claim in OIDC connector (dexidp#1634, @xtremerui)

**Bugfixes:**

- Add offline_access scope in microsoft connector, if required (dexidp#1441, @jimmythedog)
- Allow the google connector to work without a service account (dexidp#1720, @candlerb)

**Minor changes:**

- Remove vendor (finally) (dexidp#1745, @sagikazarmark)
- Fix the LDAP example (dexidp#1762, @heidemn-faro)
- Relocate the example app (dexidp#1764, @sagikazarmark)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the API package a separate module
4 participants