bugfix / switch installed versions
[webi-installers/.git] / golang / releases.js
index 0f5e80063296cec75a42b5dbce78e37e268202a8..133d8fd44b65e1b774bf219ce669753c0542a804 100644 (file)
@@ -52,7 +52,7 @@ function getAllReleases(request) {
           version: version,
           // all go versions >= 1.0.0 are effectively LTS
           lts: (parts[0] > 0 && release.stable) || false,
-          channel: release.stable || 'beta',
+          channel: (release.stable && 'stable') || 'beta',
           date: '1970-01-01', // the world may never know
           os: os,
           arch: arch,
@@ -73,6 +73,6 @@ if (module === require.main) {
   getAllReleases(require('@root/request')).then(function (all) {
     all = require('../_common/normalize.js')(all);
     all.releases = all.releases.slice(0, 10);
-    console.log(JSON.stringify(all, null, 2));
+    console.info(JSON.stringify(all, null, 2));
   });
 }