Skip to content

Commit

Permalink
Fix updater to not fail…
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Jan 2, 2025
1 parent b3667a5 commit 2b65afe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions repos/oc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"4.13":{"darwin":{"aarch64":"1lfv6nic5iy1ayvd3bz8dl77qljgqy4lczklxyp4havd0s1nsdxg","x86_64":"1lfv6nic5iy1ayvd3bz8dl77qljgqy4lczklxyp4havd0s1nsdxg"},"linux":{"aarch64":"16zcn0df2z46ap587vxps20v6s8izmqa48lm636d9sjxinpsnqy1","x86_64":"16zcn0df2z46ap587vxps20v6s8izmqa48lm636d9sjxinpsnqy1"},"version":"4.13.54"},"4.14":{"darwin":{"aarch64":"1bwdll6yaqqn8d3vri22da7i76rbcfrwh9nm8w2inwzx51pm5inc","x86_64":"1bwdll6yaqqn8d3vri22da7i76rbcfrwh9nm8w2inwzx51pm5inc"},"linux":{"aarch64":"0yyafkzppgh9z5yqzl0dj5qsvrjjl57kb7y895z2s4wymfsf5rni","x86_64":"0yyafkzppgh9z5yqzl0dj5qsvrjjl57kb7y895z2s4wymfsf5rni"},"version":"4.14.43"},"4.15":{"darwin":{"aarch64":"13ir8lkdjjai63pgy2w1vgkmvsl64wgsrr9s8fg00xxwrd20r6j7","x86_64":"13ir8lkdjjai63pgy2w1vgkmvsl64wgsrr9s8fg00xxwrd20r6j7"},"linux":{"aarch64":"08ndrcfm9csmw7nvlnzsxrki0535xvd674gmag137s1ihx7lwzbz","x86_64":"08ndrcfm9csmw7nvlnzsxrki0535xvd674gmag137s1ihx7lwzbz"},"version":"4.15.42"},"4.16":{"darwin":{"aarch64":"13k3ki0spywpmaldlhpkcvmdg2j6fl2r00d5zisbaxn40qqk9xmh","x86_64":"13k3ki0spywpmaldlhpkcvmdg2j6fl2r00d5zisbaxn40qqk9xmh"},"linux":{"aarch64":"0qvfp7ywz3z6p27as665q1xhih91w295hlps097rdkfhc5vjry6k","x86_64":"0qvfp7ywz3z6p27as665q1xhih91w295hlps097rdkfhc5vjry6k"},"version":"4.16.28"},"4.17":{"darwin":{"aarch64":"1jc8j193pdsd9d1rk1p6wsrfyyk8r68crng1lnj4rkm3798xmm6v","x86_64":"1jc8j193pdsd9d1rk1p6wsrfyyk8r68crng1lnj4rkm3798xmm6v"},"linux":{"aarch64":"0x49440haywqrdcnqpn5hsjbh2fbr6f18bqnyglzyqzpvxrc49nq","x86_64":"0x49440haywqrdcnqpn5hsjbh2fbr6f18bqnyglzyqzpvxrc49nq"},"version":"4.17.10"}}
2 changes: 1 addition & 1 deletion repos/openshift-install.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"4.13":{"darwin":{"aarch64":"1byd5xdzx074kkdfw1g1m4wymdjmmpy4zfnj1kfbs7hfgfcq346m","x86_64":"0drjqlnimaikcgkkrclskhkrva04n832wi3rjx75s5h6s43kj85c"},"linux":{"aarch64":"1zm73bwvvj0l85bxm5w705yip8am65bsf3f8v3877knfq8if64dg","x86_64":"0j5hzkbwy4hq49s5gf9c65rhdvcd9ahh1x0qvs7kxxdlvjbn1wxm"},"version":"4.13.52"},"4.14":{"darwin":{"aarch64":"04xiid9yw4zrlcz19zmgiimw7d6cln3myx4rmd5b3jfxxq9p9f0g","x86_64":"0yl76dx21f4dln8pvl8ll9j6savzgpg319dl97ks4mgqh9g6w9w3"},"linux":{"aarch64":"171lfwpd5sz64yii9yh9wcjhcbdkz4cwqhkwafs5335rbrwlq29f","x86_64":"1wmzgzrg9854gqs7cj4p2gcqjagbzl1bgbvr6q7k5hw48mg1kbnh"},"version":"4.14.38"},"4.15":{"darwin":{"aarch64":"11rbdzgzircn9pbqpmsyb2j7yga87wq5f5g55yqxvhgldrwzir7j","x86_64":"12kb8gxdc7n3fg3pd23f32zzm1jcjw1dywd3zx1w3v5sxigldjz0"},"linux":{"aarch64":"09czmzrkpfrj3zzbhj3jzh3ssjhmb45naq60503zq1078p2bv1q1","x86_64":"0ajpi8c8vnq7b6wdvc47a21pfgls761q6gx081y314mnsmx62jrj"},"version":"4.15.36"},"4.16":{"darwin":{"aarch64":"0vbs1wzhmy3g7rq9x607dj9mjkqw20gp54dhqqq6hijwdrlhjws5","x86_64":"0ddjz3w6l1g862b2ldynqnxvhc3j5fx34gpak34j4na8h98lnggi"},"linux":{"aarch64":"1f9qq16vlwl904vi8iw4cpb4pqx4yb8f9r2qidv9xb6r22x8bij6","x86_64":"1j14dc0kxbx1vb3wzkkp5m3fimjf0qvdgih6bg82g0szmizs7npv"},"version":"4.16.17"},"4.17":{"darwin":{"aarch64":"1qqxjzxxf4rags9m3h7nh5jad95xshvzidi4d7iwlp9h46ajs50l","x86_64":"0mi07aak0jl1xcli3bj3day0ap639v1ay9a8lszz79m7y903z28k"},"linux":{"aarch64":"1dnqsmwak7swvrxffa4saa35w5b0impb27j920yylbv1y8sva5z1","x86_64":"1d2mypw6rfbgh1lcm298jpvb5bzg97pyvcsd000922rjz9wkbxmn"},"version":"4.17.1"}}
{"4.13":{"darwin":{"aarch64":"0j00jpav8s8rmfcgfhb4kfyjrvx1b5gk1pz9v49bymmz3nj661n6","x86_64":"0j00jpav8s8rmfcgfhb4kfyjrvx1b5gk1pz9v49bymmz3nj661n6"},"linux":{"aarch64":"1rvc4zfj517swplh58c3y3bciyc2xqzwi8phd043xq7zg8yckn9l","x86_64":"1rvc4zfj517swplh58c3y3bciyc2xqzwi8phd043xq7zg8yckn9l"},"version":"4.13.54"},"4.14":{"darwin":{"aarch64":"14ikl12n5mpv8wr56h7zlplziwpgzrji4plliykh1mkn958945kp","x86_64":"14ikl12n5mpv8wr56h7zlplziwpgzrji4plliykh1mkn958945kp"},"linux":{"aarch64":"0hyiw3bm0ra585gn9alnrd5yv9m6nlp08rissz1m5vfy11d49sa7","x86_64":"0hyiw3bm0ra585gn9alnrd5yv9m6nlp08rissz1m5vfy11d49sa7"},"version":"4.14.43"},"4.15":{"darwin":{"aarch64":"1aks5qp219cczr8id3w4cyncccm2vci235wmbqpw1a71yxykm97x","x86_64":"1aks5qp219cczr8id3w4cyncccm2vci235wmbqpw1a71yxykm97x"},"linux":{"aarch64":"18zq75fggkj9x59l4f2x86rbvfl6l01hxrsqi6iarnpggjmga0dg","x86_64":"18zq75fggkj9x59l4f2x86rbvfl6l01hxrsqi6iarnpggjmga0dg"},"version":"4.15.42"},"4.16":{"darwin":{"aarch64":"0dfdpx6yal7ysbb8bxj82py9wncavha63xjsl1nm8jf19inhpjkb","x86_64":"0dfdpx6yal7ysbb8bxj82py9wncavha63xjsl1nm8jf19inhpjkb"},"linux":{"aarch64":"11x9lxh9084wybik5pnv74yvy8028i67m64ay04w03hfrp452dgr","x86_64":"11x9lxh9084wybik5pnv74yvy8028i67m64ay04w03hfrp452dgr"},"version":"4.16.28"},"4.17":{"darwin":{"aarch64":"0dfw4xph2dbn0bqfh6i8nrfc2rdjlv1dp8zgayax9civwb3h51rn","x86_64":"0dfw4xph2dbn0bqfh6i8nrfc2rdjlv1dp8zgayax9civwb3h51rn"},"linux":{"aarch64":"0p2adly3j3zlsd8kwl3s90gphixmd2b10kx6lj5cbj3glz7facj5","x86_64":"0p2adly3j3zlsd8kwl3s90gphixmd2b10kx6lj5cbj3glz7facj5"},"version":"4.17.10"}}
4 changes: 2 additions & 2 deletions repos/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ func fetchVersion(filename, version string, archs, platforms []string) (map[stri
}
pm := map[string]string{}
for _, arch := range archs {
url := fmt.Sprintf("https://mirror.openshift.com/pub/openshift-v4/%s/clients/ocp/%s/%s-%s-%s.tar.gz",
arch, version, filename, realplatform, version)
url := fmt.Sprintf("https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/%s/%s-%s-%s.tar.gz",
version, filename, realplatform, version)
args := []string{"--type", "sha256", url}
fmt.Fprintf(os.Stderr, "Fetching %s...\n", url)
out, err := exec.Command("nix-prefetch-url", args...).Output()
Expand Down

0 comments on commit 2b65afe

Please sign in to comment.