-
Notifications
You must be signed in to change notification settings - Fork 519
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
support for hex v2, multiple repository fetching, private organizations #1884
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2608975
update to hex_core for hex-v2 repo support (#1865)
tsloughter ae79989
support list of repos for hex packages (#1866)
tsloughter dd26f93
add hex auth handling for repos (#1874)
tsloughter 30303ee
move packages to top level of of hexpm cache dir (#1876)
tsloughter 2306c77
only eval config scripts and apply overrides once per app (#1879)
tsloughter d21832a
cleanup error messages and unused code
tsloughter 6a51989
when discovering apps support mix packages as unbuilt apps (#1882)
tsloughter 6370ede
use hex_core tarball unpacking support in pkg resource (#1883)
tsloughter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ run(RawArgs) -> | |
case erlang:system_info(version) of | ||
"6.1" -> | ||
?WARN("Due to a filelib bug in Erlang 17.1 it is recommended" | ||
"you update to a newer release.", []); | ||
"you update to a newer release.", []); | ||
_ -> | ||
ok | ||
end, | ||
|
@@ -139,8 +139,14 @@ run_aux(State, RawArgs) -> | |
rebar_state:set(State1, rebar_packages_cdn, CDN) | ||
end, | ||
|
||
%% TODO: this means use of REBAR_PROFILE=profile will replace the repos with | ||
%% the repos defined in the profile. But it will not work with `as profile`. | ||
%% Maybe it shouldn't work with either to be consistent? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I now think it might make sense not to change the repos, if only to be consistent. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, fixing. |
||
Resources = application:get_env(rebar, resources, []), | ||
State2_ = rebar_state:create_resources(Resources, State2), | ||
|
||
%% bootstrap test profile | ||
State3 = rebar_state:add_to_profile(State2, test, test_state(State1)), | ||
State3 = rebar_state:add_to_profile(State2_, test, test_state(State1)), | ||
|
||
%% Process each command, resetting any state between each one | ||
BaseDir = rebar_state:get(State, base_dir, ?DEFAULT_BASE_DIR), | ||
|
@@ -375,7 +381,11 @@ state_from_global_config(Config, GlobalConfigFile) -> | |
|
||
%% We don't want to worry about global plugin install state effecting later | ||
%% usage. So we throw away the global profile state used for plugin install. | ||
GlobalConfigThrowAway = rebar_state:current_profiles(GlobalConfig, [global]), | ||
GlobalConfigThrowAway0 = rebar_state:current_profiles(GlobalConfig, [global]), | ||
|
||
Resources = application:get_env(rebar, resources, []), | ||
GlobalConfigThrowAway = rebar_state:create_resources(Resources, GlobalConfigThrowAway0), | ||
|
||
GlobalState = case rebar_state:get(GlobalConfigThrowAway, plugins, []) of | ||
[] -> | ||
GlobalConfigThrowAway; | ||
|
@@ -386,7 +396,8 @@ state_from_global_config(Config, GlobalConfigFile) -> | |
end, | ||
GlobalPlugins = rebar_state:providers(GlobalState), | ||
GlobalConfig2 = rebar_state:set(GlobalConfig, plugins, []), | ||
GlobalConfig3 = rebar_state:set(GlobalConfig2, {plugins, global}, rebar_state:get(GlobalConfigThrowAway, plugins, [])), | ||
GlobalConfig3 = rebar_state:set(GlobalConfig2, {plugins, global}, | ||
rebar_state:get(GlobalConfigThrowAway, plugins, [])), | ||
rebar_state:providers(rebar_state:new(GlobalConfig3, Config), GlobalPlugins). | ||
|
||
-spec test_state(rebar_state:t()) -> [{'extra_src_dirs',[string()]} | {'erl_opts',[any()]}]. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space missing in the string, we'll get
it is recommendedyou update