Skip to content

Fix vendored Skylib w/ Windows-native test wrapper#2082

Closed
laszlocsomor wants to merge 1 commit intobazel-contrib:masterfrom
laszlocsomor:update-skylib-backport-unittest-windows
Closed

Fix vendored Skylib w/ Windows-native test wrapper#2082
laszlocsomor wants to merge 1 commit intobazel-contrib:masterfrom
laszlocsomor:update-skylib-backport-unittest-windows

Conversation

@laszlocsomor
Copy link
Copy Markdown
Contributor

@laszlocsomor laszlocsomor commented May 29, 2019

Partially back-port a Skylib commit [1] to the
vendored Skylib code, to fix unittest.bzl for
Bazel's native test wrapper on Windows.

The native test wrapper will replace the
Bash-script test wrapper on Windows [2].

I tried updating the current Skylib 0.5.0 sources
to 0.8.0, but tests failed on Travis CI. I suspect
that an older Bazel version is used.

[1] bazelbuild/bazel-skylib@daf5137
[2] bazelbuild/bazel#6622

Partially back-port Skylib's
daf513702286fe211f291675443235e35e79f34f to the
vendored Skylib code, to fix unittest.bzl for
Bazel's native test wrapper on Windows.

The native test wrapper will replace the
Bash-script test wrapper on Windows.

See bazelbuild/bazel#6622

I tried updating the current Skylib 0.5.0 sources
to 0.8.0, but tests failed on Travis CI, probably
because an older Bazel version is used.

Details are in "go/private/skylib/README.rst".
@laszlocsomor laszlocsomor changed the title WIP: Fix vendored Skylib w/ Windows-native test wrapper Fix vendored Skylib w/ Windows-native test wrapper May 29, 2019
@laszlocsomor
Copy link
Copy Markdown
Contributor Author

Tests look good \o/

@jayconrod
Copy link
Copy Markdown
Collaborator

Thanks for fixing this, but I ended up removing the vendored copy of Skylib in #2083 instead.

There is a set of files loaded from //go:deps.bzl which can't depend on any external repositories, since they may not have been loaded yet. Those files only depend on versions.bzl, which remains.

Everything not loaded from //go:deps.bzl can depend on @bazel_skylib directly, which is declared at 0.7.0. I think that's new enough that we shouldn't have problems.

@jayconrod jayconrod closed this May 29, 2019
@laszlocsomor laszlocsomor deleted the update-skylib-backport-unittest-windows branch June 3, 2019 06:45
@laszlocsomor
Copy link
Copy Markdown
Contributor Author

Cool, thanks!

yushan26 pushed a commit to yushan26/rules_go that referenced this pull request Jun 16, 2025
…#2082)

This is to unify how it handles printing log messages.

This also updates repo rules using repo_utils to create loggers and set
the `_rule_name` attribute for the logger to use.

* Also removes defunct repo_utils.debug_print
* Also makes some functions private that aren't used elsewhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants