-
Notifications
You must be signed in to change notification settings - Fork 528
Remove erlware_commons from the rebar3 codebase #3022
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
Open
GwendalLaurent
wants to merge
6
commits into
erlang:main
Choose a base branch
from
stritzinger:gl/erlware_commons/upstream-clean
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,600
−5,251
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1795896
erlware_common refactoring: ec_semver.erl (stritzinger/rebar3#3)
GwendalLaurent 5489eb9
erlware_common refactoring: ec_file (stritzinger/rebar3#6)
GwendalLaurent 87195f9
erlware_common refactoring: ec_lists (stritzinger/rebar3#7)
GwendalLaurent 650cd18
erlware_common refactoring: ec_cmd_logs (stritzinger/rebar3#9)
GwendalLaurent b829ffa
remove ec_cnv (stritzinger/rebar3#17)
GwendalLaurent 788b9f8
remove erlware_commons from codebase
GwendalLaurent 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -20,7 +20,6 @@ | |
| edoc, | ||
| snmp, | ||
| getopt, | ||
| erlware_commons, | ||
| providers, | ||
| bbmustache, | ||
| ssl_verify_fun, | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,3 +1,25 @@ | ||
| %% %CopyrightBegin% | ||
| %% | ||
| %% SPDX-License-Identifier: Apache-2.0 | ||
| %% | ||
| %% SPDX-FileCopyrightText: Copyright 2015-2026 Rebar3 and its contributors | ||
| %% | ||
| %% SPDX-FileCopyrightText: Copyright 2026 Dipl. Phys. Peer Stritzinger GmbH | ||
| %% | ||
| %% Licensed under the Apache License, Version 2.0 (the "License"); | ||
| %% you may not use this file except in compliance with the License. | ||
| %% You may obtain a copy of the License at | ||
| %% | ||
| %% http://www.apache.org/licenses/LICENSE-2.0 | ||
| %% | ||
| %% Unless required by applicable law or agreed to in writing, software | ||
| %% distributed under the License is distributed on an "AS IS" BASIS, | ||
| %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| %% See the License for the specific language governing permissions and | ||
| %% limitations under the License. | ||
| %% | ||
| %% %CopyrightEnd% | ||
|
|
||
| %%% @doc build a digraph of applications in order to figure out dependency | ||
| %%% and compile order. | ||
| -module(rebar_digraph). | ||
|
|
@@ -93,16 +115,9 @@ subgraph(Graph, Vertices) -> | |
|
|
||
| %% @private from a list of app names, fetch the proper app info records | ||
| %% for them. | ||
| -spec names_to_apps([atom()], [rebar_app_info:t()]) -> [rebar_app_info:t()]. | ||
| -spec names_to_apps([binary()], [rebar_app_info:t()]) -> [rebar_app_info:t()]. | ||
|
Collaborator
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'm unsure where this type signature change is coming from. Was it always wrong? |
||
| names_to_apps(Names, Apps) -> | ||
| [element(2, App) || App <- [find_app_by_name(Name, Apps) || Name <- Names], App =/= error]. | ||
|
|
||
| %% @private fetch the proper app info record for a given app name. | ||
| -spec find_app_by_name(atom(), [rebar_app_info:t()]) -> {ok, rebar_app_info:t()} | error. | ||
| find_app_by_name(Name, Apps) -> | ||
| ec_lists:find(fun(App) -> | ||
| rebar_app_info:name(App) =:= Name | ||
| end, Apps). | ||
| [element(2, App) || App <- [rebar_app_utils:find(Name, Apps) || Name <- Names], App =/= false]. | ||
|
|
||
| %% @private The union of all entries in the applications list for an app and | ||
| %% the deps listed in its rebar.config is all deps that may be needed | ||
|
|
||
This file contains hidden or 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 hidden or 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.
This signature change may create more work for plugins that could rely on it down the road. It's up to you regarding future rebar to decide whether it's worth changing it or doing a
caseto wrap thelists:searchcall to keep the signature stable. This would make it easier to the merge this into main.