Wails: Init fails to detect Arch Linux

Created on 27 Jul 2019  ·  9Comments  ·  Source: wailsapp/wails

Description
When I run wails init it fails to detect Arch Linux as my distro

To Reproduce

  1. Run wails init
  2. Enter yes
  3. A new issue opens in the browser showing missing values

Expected behaviour
The values should not be blank.
Also I expected Arch Linux to be supported since the Quick Start referenced Arch Linux.

Screenshots

System Details
The table from the opened issue

| Name | Value |
| ----- | ----- |
| Wails Version | v0.17.0 |
| Go Version | go1.12.7 |
| Platform | linux |
| Arch | amd64 |
| GO111MODULE | on |
| Distribution ID | |
| Distribution Version | |
| Discovered by | lsb |

Pastes:
go env
cat /etc/*-release
lsb_release -a

bug

Most helpful comment

it works

All 9 comments

hey @Chronophylos
I just test-built on arch linux and can not reproduce the bug I'm afraid.

[root@wails-bug-archlinux-test ~]# wails init
Wails v0.17.0 - Initialising project

The name of the project (My Project): test
Project Name: test
The output binary name (test): 
Output binary Name: test
Project directory name (test): 
Project Directory: test
Please select a template:
  1: Angular - Angular 8 template (Requires node 10.8+)
  2: React JS - Create React App v3 template
  3: Vue2/Webpack Basic - A basic Vue2/WebPack4 template
  4: Vuetify Basic - Vuetify + Webpack
Please choose an option [1]: 3
Template: Vue2/Webpack Basic
✓ Generating project...
✓ Building project (this may take a while)...
Project 'test' built in directory 'test'!

also what's weird is that in the error report Distribution ID and Distribution Version are also missing.

~can you please run cat /etc/*-release and/or hostnamectl and share the output?~
edit: I just saw you've pasted the logs already! checking them right now..

while we are looking in to it can you please give a try to wails update -pre and see if this by any chance fix the issue?

Nope 0.17.6-pre didn't fix it

I noticed you always call CheckDependenciesSilent maybe you could add a flag so CheckDependencies gets called instead?

I know whats causing the bug:
For some reason my lsb_release prints -e infront of everything. This means the switch case here doesn't do anything.

Also since using /etc/os-release is the de-facto standard lsb_release should not be used.

did you find a solution for the -e? or what is causing it?

yes probably it would be a good idea switching to _just_ /etc/*-release solution or hostnamectl.
maybe open an issue about it? also pull requests are welcome :+1: :smile:

I am not sure why we went there in the first place, maybe @leaanthony could weight in on this one?

I think it's a bug in lsb_release:
lsb_release uses sh but in POSIX sh, echo flags are undefined
Using bash fixes this

@Chronophylos - Please update to the latest pre-release (v0.17.7-pre) using: wails update -pre. Let us know if that fixes Arch support 👍

it works

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ewhal picture ewhal  ·  3Comments

VladislavSournine picture VladislavSournine  ·  5Comments

bh90210 picture bh90210  ·  4Comments

yosefbenshimon picture yosefbenshimon  ·  5Comments

leaanthony picture leaanthony  ·  6Comments