Skip to content

Commit

Permalink
[rust] Automated Edge management (#11681 and #11683) (#12835)
Browse files Browse the repository at this point in the history
* [rust] Automated Edge management (macOS) (#11681)

* [rust] Check also unstable versions for Edge management

* [rust] Include logic to check fixed versions of Edge

* [rust] Get browser url again if empty

* [rust] Include logic for stable label

* [rust] Automated Edge management (Linux) (#11681 and #11683)

* [rust] Fix paths used to extract edge

* [rust] Clean extract label and fix searched version

* [rust] Refactor logic for downloading browsers in a common function

* [rust] Install Edge in Windows through the MSI installer

* [rust] Check admin permissions in Windows before downloading MSI installer

* [rust] Use browser version in functions for requesting online repos

* [rust] Refactor common logic when unavailable download or discovery

* [rust] Fix condition checking Firefox nightly in mac

* [rust] Update cargo bazel lock file

* [rust] Separate function to ensure empty parent path before moving files

---------

Co-authored-by: titusfortner <[email protected]>
Co-authored-by: Titus Fortner <[email protected]>
  • Loading branch information
3 people authored Oct 7, 2023
1 parent 73cfa22 commit 0f8e018
Show file tree
Hide file tree
Showing 13 changed files with 1,247 additions and 416 deletions.
306 changes: 305 additions & 1 deletion rust/Cargo.Bazel.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "495be0038fd3bd2826baeb0433f22c042c1b03eeeb117631135bc6339799addf",
"checksum": "7bb62c0cb24820374fb08c7eb1d2c1661ceb1a296f8cf2cad91579a7d2687eaf",
"crates": {
"addr2line 0.19.0": {
"name": "addr2line",
Expand Down Expand Up @@ -478,6 +478,73 @@
},
"license": "MIT OR Apache-2.0"
},
"ar 0.9.0": {
"name": "ar",
"version": "0.9.0",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/ar/0.9.0/download",
"sha256": "d67af77d68a931ecd5cbd8a3b5987d63a1d1d1278f7f6a60ae33db485cdebb69"
}
},
"targets": [
{
"Library": {
"crate_name": "ar",
"crate_root": "src/lib.rs",
"srcs": [
"**/*.rs"
]
}
}
],
"library_target_name": "ar",
"common_attrs": {
"compile_data_glob": [
"**"
],
"edition": "2015",
"version": "0.9.0"
},
"license": "MIT"
},
"arrayvec 0.7.4": {
"name": "arrayvec",
"version": "0.7.4",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/arrayvec/0.7.4/download",
"sha256": "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
}
},
"targets": [
{
"Library": {
"crate_name": "arrayvec",
"crate_root": "src/lib.rs",
"srcs": [
"**/*.rs"
]
}
}
],
"library_target_name": "arrayvec",
"common_attrs": {
"compile_data_glob": [
"**"
],
"crate_features": {
"common": [
"default",
"std"
],
"selects": {}
},
"edition": "2018",
"version": "0.7.4"
},
"license": "MIT OR Apache-2.0"
},
"assert_cmd 2.0.12": {
"name": "assert_cmd",
"version": "2.0.12",
Expand Down Expand Up @@ -2021,6 +2088,81 @@
},
"license": "MIT OR Apache-2.0"
},
"debpkg 0.6.0": {
"name": "debpkg",
"version": "0.6.0",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/debpkg/0.6.0/download",
"sha256": "7ffffa9a03449467cfac11c9a4260556f477de22a935bb5e9475153de323c337"
}
},
"targets": [
{
"Library": {
"crate_name": "debpkg",
"crate_root": "src/lib.rs",
"srcs": [
"**/*.rs"
]
}
}
],
"library_target_name": "debpkg",
"common_attrs": {
"compile_data_glob": [
"**"
],
"deps": {
"common": [
{
"id": "ar 0.9.0",
"target": "ar"
},
{
"id": "arrayvec 0.7.4",
"target": "arrayvec"
},
{
"id": "bzip2 0.4.4",
"target": "bzip2"
},
{
"id": "flate2 1.0.27",
"target": "flate2"
},
{
"id": "indexmap 1.9.2",
"target": "indexmap"
},
{
"id": "infer 0.8.1",
"target": "infer"
},
{
"id": "log 0.4.20",
"target": "log"
},
{
"id": "tar 0.4.40",
"target": "tar"
},
{
"id": "xz2 0.1.7",
"target": "xz2"
},
{
"id": "zstd 0.11.2+zstd.1.5.2",
"target": "zstd"
}
],
"selects": {}
},
"edition": "2018",
"version": "0.6.0"
},
"license": "MIT"
},
"difflib 0.4.0": {
"name": "difflib",
"version": "0.4.0",
Expand Down Expand Up @@ -4647,6 +4789,54 @@
},
"license": "MIT"
},
"infer 0.8.1": {
"name": "infer",
"version": "0.8.1",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/infer/0.8.1/download",
"sha256": "e035cede526e0b21d5adffc9fa0eb4ef5d6026fe9c5b0bfe8084b9472b587a55"
}
},
"targets": [
{
"Library": {
"crate_name": "infer",
"crate_root": "src/lib.rs",
"srcs": [
"**/*.rs"
]
}
}
],
"library_target_name": "infer",
"common_attrs": {
"compile_data_glob": [
"**"
],
"crate_features": {
"common": [
"alloc",
"cfb",
"default",
"std"
],
"selects": {}
},
"deps": {
"common": [
{
"id": "cfb 0.7.3",
"target": "cfb"
}
],
"selects": {}
},
"edition": "2018",
"version": "0.8.1"
},
"license": "MIT"
},
"inout 0.1.3": {
"name": "inout",
"version": "0.1.3",
Expand Down Expand Up @@ -5280,6 +5470,77 @@
},
"license": "Apache-2.0"
},
"lzma-sys 0.1.20": {
"name": "lzma-sys",
"version": "0.1.20",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/lzma-sys/0.1.20/download",
"sha256": "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27"
}
},
"targets": [
{
"Library": {
"crate_name": "lzma_sys",
"crate_root": "src/lib.rs",
"srcs": [
"**/*.rs"
]
}
},
{
"BuildScript": {
"crate_name": "build_script_build",
"crate_root": "build.rs",
"srcs": [
"**/*.rs"
]
}
}
],
"library_target_name": "lzma_sys",
"common_attrs": {
"compile_data_glob": [
"**"
],
"deps": {
"common": [
{
"id": "libc 0.2.147",
"target": "libc"
},
{
"id": "lzma-sys 0.1.20",
"target": "build_script_build"
}
],
"selects": {}
},
"edition": "2018",
"version": "0.1.20"
},
"build_script_attrs": {
"data_glob": [
"**"
],
"deps": {
"common": [
{
"id": "cc 1.0.79",
"target": "cc"
},
{
"id": "pkg-config 0.3.26",
"target": "pkg_config"
}
],
"selects": {}
},
"links": "lzma"
},
"license": "MIT/Apache-2.0"
},
"memchr 2.5.0": {
"name": "memchr",
"version": "2.5.0",
Expand Down Expand Up @@ -7750,6 +8011,10 @@
"id": "clap 4.3.23",
"target": "clap"
},
{
"id": "debpkg 0.6.0",
"target": "debpkg"
},
{
"id": "directories 5.0.1",
"target": "directories"
Expand Down Expand Up @@ -12349,6 +12614,45 @@
},
"license": "MIT/Apache-2.0"
},
"xz2 0.1.7": {
"name": "xz2",
"version": "0.1.7",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/xz2/0.1.7/download",
"sha256": "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2"
}
},
"targets": [
{
"Library": {
"crate_name": "xz2",
"crate_root": "src/lib.rs",
"srcs": [
"**/*.rs"
]
}
}
],
"library_target_name": "xz2",
"common_attrs": {
"compile_data_glob": [
"**"
],
"deps": {
"common": [
{
"id": "lzma-sys 0.1.20",
"target": "lzma_sys"
}
],
"selects": {}
},
"edition": "2018",
"version": "0.1.7"
},
"license": "MIT/Apache-2.0"
},
"zip 0.6.6": {
"name": "zip",
"version": "0.6.6",
Expand Down
Loading

0 comments on commit 0f8e018

Please sign in to comment.