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

Update hex_core and add mirror_of repo config #1986

Merged
merged 2 commits into from
Jan 1, 2019

Conversation

ericmj
Copy link
Contributor

@ericmj ericmj commented Dec 29, 2018

No description provided.

rebar.config Outdated Show resolved Hide resolved
@ericmj
Copy link
Contributor Author

ericmj commented Dec 29, 2018

PR updated and hex_core updated hexpm/hex_core#51.

@ericmj ericmj force-pushed the emj/mirror-of branch 5 times, most recently from a60acdd to c88f5d5 Compare December 30, 2018 13:32
@ericmj
Copy link
Contributor Author

ericmj commented Jan 1, 2019

This is ready for review.

src/rebar_packages.erl Outdated Show resolved Hide resolved
@ferd ferd merged commit edb8f3d into erlang:master Jan 1, 2019
@ericmj ericmj deleted the emj/mirror-of branch January 1, 2019 23:44
@ferd
Copy link
Collaborator

ferd commented Jan 3, 2019

@ericmj we got a regression from this patch where we used to display:
"===> Failed to update package from repo hexpm"
but apparently this no longer happens. I'm not too sure where in the code the flow was changed, but this is holding back cutting a release for now. I'll try to see what I can find.

_ = insert_releases(Name, Releases, Repo, ?PACKAGE_TABLE),
{ok, RegistryDir} = rebar_packages:registry_dir(State),
PackageIndex = filename:join(RegistryDir, ?INDEX_FILE),
ok = ets:tab2file(?PACKAGE_TABLE, PackageIndex);
{ok, {403, _Headers, <<>>}} ->
{ok, {403, _Headers, _}} ->
Copy link
Collaborator

@ferd ferd Jan 3, 2019

Choose a reason for hiding this comment

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

This is the change that now eats up the warning on line 249/252

Seems the warning was accidentally in place. Maybe we should duplicate it up here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made this change because it's not meaningful to match on an empty body on 403 responses, in fact repo.hex.pm never returns an empty body for 403. Maybe the clause should be removed instead?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah that would be fine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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