k1LoW / tbls

tbls is a CI-Friendly tool for document a database, written in Go.
MIT License
3.37k stars 165 forks source link

fail to install using curl #425

Closed Goryudyuma closed 1 year ago

Goryudyuma commented 1 year ago

What happened

In Github Actions, i use this code.

$ source <(curl https://raw.githubusercontent.com/k1LoW/tbls/main/use) && tbls doc --rm-dist

But error happened in this morning.

log ``` Run source <(curl https://raw.githubusercontent.com/k1LoW/tbls/main/use) && tbls doc --rm-dist source <(curl https://raw.githubusercontent.com/k1LoW/tbls/main/use) && tbls doc --rm-dist shell: /usr/bin/bash -e {0} env: CI_USER: *** CI_TOKEN: *** % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1[2](https://github.com/Finatext/gungnir-server/actions/runs/4020645866/jobs/6908945483#step:8:2)7[3](https://github.com/Finatext/gungnir-server/actions/runs/4020645866/jobs/6908945483#step:8:3) 100 1273 0 0 [4](https://github.com/Finatext/gungnir-server/actions/runs/4020645866/jobs/6908945483#step:8:4)299 0 --:--:-- --:--:-- --:--:-- 431[5](https://github.com/Finatext/gungnir-server/actions/runs/4020645866/jobs/6908945483#step:8:5) curl: (3) URL using bad/illegal format or missing URL % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: ([6](https://github.com/Finatext/gungnir-server/actions/runs/4020645866/jobs/6908945483#step:8:6)) Could not resolve host: Skip % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: downloading % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: if % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: the % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: newest % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: file % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: was % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: downloaded % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: before /dev/fd/63: line 3[7](https://github.com/Finatext/gungnir-server/actions/runs/4020645866/jobs/6908945483#step:8:8): -s: command not found tar: /tmp/tbls.tar.gz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now You can use `tbls` command in this session. ```

Maybe this commit is wrong(or not).

https://github.com/k1LoW/tbls/commit/bec0d78ecf4f5669786ec3ceddb04e118f8c8761

What you expected to happened

not error

What stack trace or error message from tbls did you see?

Already pasted.

Anything else we need to know?

No.

Environment

Goryudyuma commented 1 year ago

I got around it for now by using go install , but I think you should still be able to use curl as well.

k1LoW commented 1 year ago

@Goryudyuma Thank you for your report!

I got it fixed at https://github.com/k1LoW/tbls/pull/426