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

Bump go to 1.22 & all deps #49

Merged
merged 5 commits into from
Apr 5, 2024
Merged

Bump go to 1.22 & all deps #49

merged 5 commits into from
Apr 5, 2024

Conversation

joshkeegan-form3
Copy link
Contributor

Bumps to version to v1.22 & all dependencies in preparation for creating a new release.

The envconfig upgrade included a breaking change which would cause no proxy to start if the SERVER_ADDRESS env var was not specified. A fix is included in its own commit, along with a unit test to prevent regression.

After bumping packages, envconfig behaviour has changed. If a struct contains a pointer, and no value is being loaded, it will now generate the zero value for the pointed type rather than nil.

This prevented the proxy from being started if no SERVER_ADDRESS was specified, as ConfigureProxy checks for no server address being specified by comparing it to url.URL{}, which because of the pointer is no longer equal.

The fix is a simple config change for envconfig so that it will use nil rather than the zero value for the pointer when no value is specified.
@joshkeegan-form3 joshkeegan-form3 requested a review from a team as a code owner April 5, 2024 10:29
Copy link

@ekosov-form3 ekosov-form3 left a comment

Choose a reason for hiding this comment

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

LGTM

@joshkeegan-form3 joshkeegan-form3 merged commit 5e36fe5 into master Apr 5, 2024
2 checks passed
@joshkeegan-form3 joshkeegan-form3 deleted the jk-bump-deps branch April 5, 2024 10:46
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.

2 participants