Skip to content

Commit

Permalink
Flip --incompatible_string_join_requires_strings
Browse files Browse the repository at this point in the history
Fixes bazelbuild#7802

RELNOTES: --incompatible_string_join_requires_strings is now enabled by default
PiperOrigin-RevId: 250159837
  • Loading branch information
laurentlb authored and irengrig committed Jun 18, 2019
1 parent ee50806 commit ecd405f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public class StarlarkSemanticsOptions extends OptionsBase implements Serializabl

@Option(
name = "incompatible_string_join_requires_strings",
defaultValue = "false",
defaultValue = "true",
documentationCategory = OptionDocumentationCategory.STARLARK_SEMANTICS,
effectTags = {OptionEffectTag.BUILD_FILE_SEMANTICS},
metadataTags = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public static Builder builderWithDefaults() {
.incompatibleRemoveNativeMavenJar(false)
.incompatibleRestrictNamedParams(false)
.incompatibleStaticNameResolutionInBuildFiles(true)
.incompatibleStringJoinRequiresStrings(false)
.incompatibleStringJoinRequiresStrings(true)
.internalSkylarkFlagTestCanary(false)
.incompatibleDoNotSplitLinkingCmdline(false)
.incompatibleDepsetForLibrariesToLinkGetter(false)
Expand Down
4 changes: 2 additions & 2 deletions tools/python/srcs_version.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ root. Paths are represented as depsets with `preorder` order.
)

def _join_lines(nodes):
return "\n".join(nodes) if nodes else "<None>"
return "\n".join([str(n) for n in nodes]) if nodes else "<None>"

def _str_path(path):
return " -> ".join(path.to_list())
return " -> ".join([str(p) for p in path.to_list()])

def _str_tv_info(tv_info):
"""Returns a string representation of a `_TransitiveVersionInfo`."""
Expand Down

0 comments on commit ecd405f

Please sign in to comment.