Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ gazelle(
name = "gazelle",
command = "fix",
)

nogo(
name = "chrome_ssh_agent_nogo",
config = ":nogo-config.json",
Expand Down
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ use_repo(
go_deps,
# Direct dependencies only
"com_github_google_go_cmp",
"com_github_tebeka_selenium",
"com_github_chromedp_chromedp",
"com_github_chromedp_cdproto",
"com_github_youmark_pkcs8",
"org_golang_x_crypto",
"org_golang_x_tools",
Expand Down Expand Up @@ -64,5 +65,4 @@ use_repo(rules_ts_ext, "npm_typescript")

# Pull in Chromium for use in tests
chromium_dependencies = use_extension("//build_defs:chromium.bzl", "chromium_dependencies")
use_repo(chromium_dependencies, "chromedriver")
use_repo(chromium_dependencies, "chromium")
14 changes: 1 addition & 13 deletions build_defs/chromium.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,7 @@ def chromium_data_dependencies():
# Step 2: Look for branch_base_position of current stable releases
# Step 3: Go to https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/ etc to verify presence of that branch release for that platform.
# If no results, delete the last digit to broaden your search til you find a result.
# Step 4: Verify both Chromium and ChromeDriver are released at that version.
# Step 5: Update the URL to the new release.
http_archive(
name = "chromedriver",
build_file_content =
"""
exports_files(["chromedriver_linux64/chromedriver"])
""",
sha256 = "25df608bbd1f2433a4622eb877c3026e005568bc69021fd16e5c9d57c287de07",
# Release Milestone: 118
urls = ["https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1192597/chromedriver_linux64.zip"],
)

# Step 4: Update the URL to the new release.
http_archive(
name = "chromium",
build_file_content =
Expand Down
14 changes: 8 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@ go 1.21.5

require (
github.com/google/go-cmp v0.6.0
// https://github.com/tebeka/selenium/commit/e617f9870cec59a6f6e234017e45d36ef0444a04 required to support CRX3 format
github.com/tebeka/selenium v0.9.10-0.20211105214847-e9100b7f5ac1
github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a
golang.org/x/crypto v0.17.0
)

require (
github.com/bazelbuild/rules_go v0.44.0
github.com/chromedp/cdproto v0.0.0-20231011050154-1d073bb38998
github.com/chromedp/chromedp v0.9.3
github.com/norunners/vert v0.0.0-20221203075838-106a353d42dd
golang.org/x/tools v0.16.1
)

require (
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/mediabuyerbot/go-crx3 v1.3.1 // indirect
github.com/chromedp/sysutil v1.0.0 // indirect
github.com/gobwas/httphead v0.1.0 // indirect
github.com/gobwas/pool v0.2.1 // indirect
github.com/gobwas/ws v1.3.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
golang.org/x/sys v0.15.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
)
282 changes: 23 additions & 259 deletions go.sum

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions test/e2e/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ go_test(
data = [
"//:chrome-ssh-agent.zip",
"//:chrome-ssh-agent-beta.zip",
"@chromedriver//:chromedriver_linux64/chromedriver",
"@chromium//:chrome-linux/chrome",
],
importpath = "github.com/google/chrome-ssh-agent/test",
deps = [
"//go/testutil",
"@com_github_tebeka_selenium//:selenium",
"@com_github_tebeka_selenium//chrome",
"@com_github_tebeka_selenium//log",
"@rules_go//go/tools/bazel",
"@com_github_chromedp_cdproto//runtime",
"@com_github_chromedp_chromedp//:chromedp",
],
)
Loading