File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,4 @@ build --incompatible_strict_action_env
44build --flag_alias=erlang_home=//:erlang_home
55build --flag_alias=erlang_version=//:erlang_version
66
7- build --extra_toolchains=@erlang_config//external:toolchain
8-
97try-import %workspace%/user.bazelrc
Original file line number Diff line number Diff line change @@ -34,3 +34,7 @@ use_repo(
3434 erlang_config_extension ,
3535 "erlang_config" ,
3636)
37+
38+ register_toolchains (
39+ "@erlang_config//external:toolchain" ,
40+ )
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ ERLANG_HOME_ENV_VAR = "ERLANG_HOME"
77DEFAULT_ERL_PATH = "/usr/bin/erl"
88
99_DEFAULT_EXTERNAL_ERLANG_PACKAGE_NAME = "external"
10+ _ERLANG_VERSION_UNKNOWN = "UNKNOWN"
1011
1112INSTALLATION_TYPE_EXTERNAL = "external"
1213INSTALLATION_TYPE_INTERNAL = "internal"
@@ -136,7 +137,14 @@ def _default_erlang_dict(repository_ctx):
136137 ),
137138 }
138139 else :
139- return {}
140+ return {
141+ _DEFAULT_EXTERNAL_ERLANG_PACKAGE_NAME : struct (
142+ type = INSTALLATION_TYPE_EXTERNAL ,
143+ version = _ERLANG_VERSION_UNKNOWN ,
144+ major = _ERLANG_VERSION_UNKNOWN .lower (),
145+ erlang_home = erlang_home ,
146+ ),
147+ }
140148
141149def _build_file_content (erlang_installations ):
142150 external_installations = {
Original file line number Diff line number Diff line change @@ -27,6 +27,5 @@ use_repo(
2727)
2828
2929register_toolchains (
30- "@erlang_config//external:toolchain" ,
3130 "@erlang_config//internal:toolchain" ,
3231)
You can’t perform that action at this time.
0 commit comments