Skip to content

Commit

Permalink
[build] Silence console spam from the snopt repository rule (#22431)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwnimmer-tri authored Jan 9, 2025
1 parent b912eee commit 70016f2
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions tools/workspace/snopt/repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,22 @@ def snopt_repository(
commit = "0254e961cb8c60193b0862a0428fd6a42bfb5243"
shallow_since = "1546539374 -0500"

# Passing None to the repository rule causes DEBUG output spam from Bazel
# asking us to drop the unused argument, so we'll only pass non-None.
kwargs = dict()
if commit != None:
kwargs.update(commit = commit)
if shallow_since != None:
kwargs.update(shallow_since = shallow_since)
if tag != None:
kwargs.update(tag = tag)
if branch != None:
kwargs.update(branch = branch)

_snopt_repository(
name = name,
remote = remote,
commit = commit,
shallow_since = shallow_since,
tag = tag,
branch = branch,
**kwargs
)

def _setup_git(repo_ctx):
Expand Down

0 comments on commit 70016f2

Please sign in to comment.