swifweb / webber

👨‍🍳 Web apps cook tool. It helps to debug and release your SwifWeb apps.
https://swifweb.com
MIT License
42 stars 3 forks source link

Unable to find tag for current OS #5

Open darkoverlordofdata opened 1 month ago

darkoverlordofdata commented 1 month ago

running on elementary OS 7.1 Horus - Built on Ubuntu 22.04.5 LTS - Linux 6.8.0-47-generic

:~$ webber serve -t pwa -s Service
     _______.____    __    ____  __   ___________    __    ____  _______ .______
    /       |\   \  /  \  /   / |  | |   ____\   \  /  \  /   / |   ____||   _  \
   |   (----` \   \/    \/   /  |  | |  |__   \   \/    \/   /  |  |__   |  |_)  |
    \   \      \            /   |  | |   __|   \            /   |   __|  |   _  <
.----)   |      \    /\    /    |  | |  |       \    /\    /    |  |____ |  |_)  |
|_______/        \__/  \__/     |__| |__|        \__/  \__/     |_______||______/
Unable to find tag for current OS
:~$ 
MihaelIsaev commented 1 month ago

Could you please try to execute it with -v it should show more details

And could you please execute it with --toolchain 5.10.0-RELEASE and -v optionally to see detailed log

MihaelIsaev commented 1 month ago

@darkoverlordofdata I got the problem, hopefully fixed it

Could you please update webber by executing the following commands

cd /opt/webber
git pull
swift build -c release

And then please change directory to the project folder and try again

webber serve -t pwa -s Service
darkoverlordofdata commented 1 month ago

That didn't work, but I found the problem - lsb-release is notoriosly unreliable in ubuntu derivatives. You're not doing anything wrong, just typical linux resistance to standardization. Anyway, once i patched this for my machine, it worked.

    private var ubuntuRelease: String? {
        guard let data = FileManager.default.contents(atPath:
"/etc/lsb-release"), let str = String(data: data, encoding: .utf8) else {
            return nil
        }
        if str.contains("DISTRIB_RELEASE=18.04") {
            return "ubuntu18.04"
        } else if str.contains("DISTRIB_RELEASE=20.04") {
            return "ubuntu20.04"
        } else if str.contains("DISTRIB_RELEASE=22.04") {
            return "ubuntu22.04"
        } else if str.contains("DISTRIB_RELEASE=7.1") {
            return "ubuntu22.04"
        } else if str.contains("DISTRIB_RELEASE=24.04") {
            return "ubuntu24.04"
        }
        return nil
    }

On Sat, Oct 19, 2024 at 7:22 PM Mikhail Isaev aka iMike < @.***> wrote:

@darkoverlordofdata https://github.com/darkoverlordofdata I got the problem, hopefully fixed it

Could you please update webber by executing the following commands

cd /opt/webber git pull swift build -c release

And then please change directory to the project folder and try again

webber serve -t pwa -s Service

— Reply to this email directly, view it on GitHub https://github.com/swifweb/webber/issues/5#issuecomment-2424430221, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUE4RGPNB3745RJYNHTNTZ4MHYBAVCNFSM6AAAAABQHVG6XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRUGQZTAMRSGE . You are receiving this because you were mentioned.Message ID: @.***>

--

Bruce Davidson

darkoverlordofdata commented 1 month ago

btw -

uname -v
#47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct  2 16:16:55 UTC 2

On Mon, Oct 21, 2024 at 4:44 PM bruce @.***> wrote:

That didn't work, but I found the problem - lsb-release is notoriosly unreliable in ubuntu derivatives. You're not doing anything wrong, just typical linux resistance to standardization. Anyway, once i patched this for my machine, it worked.

    private var ubuntuRelease: String? {
        guard let data = FileManager.default.contents(atPath:
"/etc/lsb-release"), let str = String(data: data, encoding: .utf8) else {
            return nil
        }
        if str.contains("DISTRIB_RELEASE=18.04") {
            return "ubuntu18.04"
        } else if str.contains("DISTRIB_RELEASE=20.04") {
            return "ubuntu20.04"
        } else if str.contains("DISTRIB_RELEASE=22.04") {
            return "ubuntu22.04"
        } else if str.contains("DISTRIB_RELEASE=7.1") {
            return "ubuntu22.04"
        } else if str.contains("DISTRIB_RELEASE=24.04") {
            return "ubuntu24.04"
        }
        return nil
    }

On Sat, Oct 19, 2024 at 7:22 PM Mikhail Isaev aka iMike < @.***> wrote:

@darkoverlordofdata https://github.com/darkoverlordofdata I got the problem, hopefully fixed it

Could you please update webber by executing the following commands

cd /opt/webber git pull swift build -c release

And then please change directory to the project folder and try again

webber serve -t pwa -s Service

— Reply to this email directly, view it on GitHub https://github.com/swifweb/webber/issues/5#issuecomment-2424430221, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUE4RGPNB3745RJYNHTNTZ4MHYBAVCNFSM6AAAAABQHVG6XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRUGQZTAMRSGE . You are receiving this because you were mentioned.Message ID: @.***>

--

Bruce Davidson

--

Bruce Davidson

MihaelIsaev commented 1 month ago

Thank you for the feedback! Could you please send me the listing of your /etc/os-release file whenever you have chance, I think it would be better to switch to it.