Skip to content

Project cannot be built under WSL due to NAME environment variable #45874

Closed
@LinkDownZ

Description

@LinkDownZ

When building v3.5.0 under WSL (Ubuntu 20.04), the following test fails:

./gradlew :spring-boot-project:spring-boot:test --tests "org.springframework.boot.context.properties.ConfigurationPropertiesTests.loadWhenBindingWithParentContextShouldBind"

The failure occurs in this call chain:

loadWhenBindingWithParentContextShouldBind
  -> load(new Class<?>[] { BasicConfiguration.class, BasicPropertiesConsumer.class }, "name=child")
  -> this.context.refresh()
  -> obtainFreshBeanFactory()
  -> refreshBeanFactory()
  -> !this.refreshed.compareAndSet(false, true) == true

However, this test passes successfully in:

  • Windows 11
  • Ubuntu 22.04

Please help investigate why it fails specifically in WSL on Ubuntu 20.04.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions