Skip to content

Commit 0f8e018

Browse files
[rust] Automated Edge management (#11681 and #11683) (#12835)
* [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 <titus.fortner@gmail.com> Co-authored-by: Titus Fortner <titusfortner@users.noreply.github.com>
1 parent 73cfa22 commit 0f8e018

File tree

13 files changed

+1247
-416
lines changed

13 files changed

+1247
-416
lines changed

rust/Cargo.Bazel.lock

Lines changed: 305 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"checksum": "495be0038fd3bd2826baeb0433f22c042c1b03eeeb117631135bc6339799addf",
2+
"checksum": "7bb62c0cb24820374fb08c7eb1d2c1661ceb1a296f8cf2cad91579a7d2687eaf",
33
"crates": {
44
"addr2line 0.19.0": {
55
"name": "addr2line",
@@ -478,6 +478,73 @@
478478
},
479479
"license": "MIT OR Apache-2.0"
480480
},
481+
"ar 0.9.0": {
482+
"name": "ar",
483+
"version": "0.9.0",
484+
"repository": {
485+
"Http": {
486+
"url": "https://crates.io/api/v1/crates/ar/0.9.0/download",
487+
"sha256": "d67af77d68a931ecd5cbd8a3b5987d63a1d1d1278f7f6a60ae33db485cdebb69"
488+
}
489+
},
490+
"targets": [
491+
{
492+
"Library": {
493+
"crate_name": "ar",
494+
"crate_root": "src/lib.rs",
495+
"srcs": [
496+
"**/*.rs"
497+
]
498+
}
499+
}
500+
],
501+
"library_target_name": "ar",
502+
"common_attrs": {
503+
"compile_data_glob": [
504+
"**"
505+
],
506+
"edition": "2015",
507+
"version": "0.9.0"
508+
},
509+
"license": "MIT"
510+
},
511+
"arrayvec 0.7.4": {
512+
"name": "arrayvec",
513+
"version": "0.7.4",
514+
"repository": {
515+
"Http": {
516+
"url": "https://crates.io/api/v1/crates/arrayvec/0.7.4/download",
517+
"sha256": "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
518+
}
519+
},
520+
"targets": [
521+
{
522+
"Library": {
523+
"crate_name": "arrayvec",
524+
"crate_root": "src/lib.rs",
525+
"srcs": [
526+
"**/*.rs"
527+
]
528+
}
529+
}
530+
],
531+
"library_target_name": "arrayvec",
532+
"common_attrs": {
533+
"compile_data_glob": [
534+
"**"
535+
],
536+
"crate_features": {
537+
"common": [
538+
"default",
539+
"std"
540+
],
541+
"selects": {}
542+
},
543+
"edition": "2018",
544+
"version": "0.7.4"
545+
},
546+
"license": "MIT OR Apache-2.0"
547+
},
481548
"assert_cmd 2.0.12": {
482549
"name": "assert_cmd",
483550
"version": "2.0.12",
@@ -2021,6 +2088,81 @@
20212088
},
20222089
"license": "MIT OR Apache-2.0"
20232090
},
2091+
"debpkg 0.6.0": {
2092+
"name": "debpkg",
2093+
"version": "0.6.0",
2094+
"repository": {
2095+
"Http": {
2096+
"url": "https://crates.io/api/v1/crates/debpkg/0.6.0/download",
2097+
"sha256": "7ffffa9a03449467cfac11c9a4260556f477de22a935bb5e9475153de323c337"
2098+
}
2099+
},
2100+
"targets": [
2101+
{
2102+
"Library": {
2103+
"crate_name": "debpkg",
2104+
"crate_root": "src/lib.rs",
2105+
"srcs": [
2106+
"**/*.rs"
2107+
]
2108+
}
2109+
}
2110+
],
2111+
"library_target_name": "debpkg",
2112+
"common_attrs": {
2113+
"compile_data_glob": [
2114+
"**"
2115+
],
2116+
"deps": {
2117+
"common": [
2118+
{
2119+
"id": "ar 0.9.0",
2120+
"target": "ar"
2121+
},
2122+
{
2123+
"id": "arrayvec 0.7.4",
2124+
"target": "arrayvec"
2125+
},
2126+
{
2127+
"id": "bzip2 0.4.4",
2128+
"target": "bzip2"
2129+
},
2130+
{
2131+
"id": "flate2 1.0.27",
2132+
"target": "flate2"
2133+
},
2134+
{
2135+
"id": "indexmap 1.9.2",
2136+
"target": "indexmap"
2137+
},
2138+
{
2139+
"id": "infer 0.8.1",
2140+
"target": "infer"
2141+
},
2142+
{
2143+
"id": "log 0.4.20",
2144+
"target": "log"
2145+
},
2146+
{
2147+
"id": "tar 0.4.40",
2148+
"target": "tar"
2149+
},
2150+
{
2151+
"id": "xz2 0.1.7",
2152+
"target": "xz2"
2153+
},
2154+
{
2155+
"id": "zstd 0.11.2+zstd.1.5.2",
2156+
"target": "zstd"
2157+
}
2158+
],
2159+
"selects": {}
2160+
},
2161+
"edition": "2018",
2162+
"version": "0.6.0"
2163+
},
2164+
"license": "MIT"
2165+
},
20242166
"difflib 0.4.0": {
20252167
"name": "difflib",
20262168
"version": "0.4.0",
@@ -4647,6 +4789,54 @@
46474789
},
46484790
"license": "MIT"
46494791
},
4792+
"infer 0.8.1": {
4793+
"name": "infer",
4794+
"version": "0.8.1",
4795+
"repository": {
4796+
"Http": {
4797+
"url": "https://crates.io/api/v1/crates/infer/0.8.1/download",
4798+
"sha256": "e035cede526e0b21d5adffc9fa0eb4ef5d6026fe9c5b0bfe8084b9472b587a55"
4799+
}
4800+
},
4801+
"targets": [
4802+
{
4803+
"Library": {
4804+
"crate_name": "infer",
4805+
"crate_root": "src/lib.rs",
4806+
"srcs": [
4807+
"**/*.rs"
4808+
]
4809+
}
4810+
}
4811+
],
4812+
"library_target_name": "infer",
4813+
"common_attrs": {
4814+
"compile_data_glob": [
4815+
"**"
4816+
],
4817+
"crate_features": {
4818+
"common": [
4819+
"alloc",
4820+
"cfb",
4821+
"default",
4822+
"std"
4823+
],
4824+
"selects": {}
4825+
},
4826+
"deps": {
4827+
"common": [
4828+
{
4829+
"id": "cfb 0.7.3",
4830+
"target": "cfb"
4831+
}
4832+
],
4833+
"selects": {}
4834+
},
4835+
"edition": "2018",
4836+
"version": "0.8.1"
4837+
},
4838+
"license": "MIT"
4839+
},
46504840
"inout 0.1.3": {
46514841
"name": "inout",
46524842
"version": "0.1.3",
@@ -5280,6 +5470,77 @@
52805470
},
52815471
"license": "Apache-2.0"
52825472
},
5473+
"lzma-sys 0.1.20": {
5474+
"name": "lzma-sys",
5475+
"version": "0.1.20",
5476+
"repository": {
5477+
"Http": {
5478+
"url": "https://crates.io/api/v1/crates/lzma-sys/0.1.20/download",
5479+
"sha256": "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27"
5480+
}
5481+
},
5482+
"targets": [
5483+
{
5484+
"Library": {
5485+
"crate_name": "lzma_sys",
5486+
"crate_root": "src/lib.rs",
5487+
"srcs": [
5488+
"**/*.rs"
5489+
]
5490+
}
5491+
},
5492+
{
5493+
"BuildScript": {
5494+
"crate_name": "build_script_build",
5495+
"crate_root": "build.rs",
5496+
"srcs": [
5497+
"**/*.rs"
5498+
]
5499+
}
5500+
}
5501+
],
5502+
"library_target_name": "lzma_sys",
5503+
"common_attrs": {
5504+
"compile_data_glob": [
5505+
"**"
5506+
],
5507+
"deps": {
5508+
"common": [
5509+
{
5510+
"id": "libc 0.2.147",
5511+
"target": "libc"
5512+
},
5513+
{
5514+
"id": "lzma-sys 0.1.20",
5515+
"target": "build_script_build"
5516+
}
5517+
],
5518+
"selects": {}
5519+
},
5520+
"edition": "2018",
5521+
"version": "0.1.20"
5522+
},
5523+
"build_script_attrs": {
5524+
"data_glob": [
5525+
"**"
5526+
],
5527+
"deps": {
5528+
"common": [
5529+
{
5530+
"id": "cc 1.0.79",
5531+
"target": "cc"
5532+
},
5533+
{
5534+
"id": "pkg-config 0.3.26",
5535+
"target": "pkg_config"
5536+
}
5537+
],
5538+
"selects": {}
5539+
},
5540+
"links": "lzma"
5541+
},
5542+
"license": "MIT/Apache-2.0"
5543+
},
52835544
"memchr 2.5.0": {
52845545
"name": "memchr",
52855546
"version": "2.5.0",
@@ -7750,6 +8011,10 @@
77508011
"id": "clap 4.3.23",
77518012
"target": "clap"
77528013
},
8014+
{
8015+
"id": "debpkg 0.6.0",
8016+
"target": "debpkg"
8017+
},
77538018
{
77548019
"id": "directories 5.0.1",
77558020
"target": "directories"
@@ -12349,6 +12614,45 @@
1234912614
},
1235012615
"license": "MIT/Apache-2.0"
1235112616
},
12617+
"xz2 0.1.7": {
12618+
"name": "xz2",
12619+
"version": "0.1.7",
12620+
"repository": {
12621+
"Http": {
12622+
"url": "https://crates.io/api/v1/crates/xz2/0.1.7/download",
12623+
"sha256": "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2"
12624+
}
12625+
},
12626+
"targets": [
12627+
{
12628+
"Library": {
12629+
"crate_name": "xz2",
12630+
"crate_root": "src/lib.rs",
12631+
"srcs": [
12632+
"**/*.rs"
12633+
]
12634+
}
12635+
}
12636+
],
12637+
"library_target_name": "xz2",
12638+
"common_attrs": {
12639+
"compile_data_glob": [
12640+
"**"
12641+
],
12642+
"deps": {
12643+
"common": [
12644+
{
12645+
"id": "lzma-sys 0.1.20",
12646+
"target": "lzma_sys"
12647+
}
12648+
],
12649+
"selects": {}
12650+
},
12651+
"edition": "2018",
12652+
"version": "0.1.7"
12653+
},
12654+
"license": "MIT/Apache-2.0"
12655+
},
1235212656
"zip 0.6.6": {
1235312657
"name": "zip",
1235412658
"version": "0.6.6",

0 commit comments

Comments
 (0)