Skip to content

Commit 97c6cae

Browse files
committed
github: fix URLs in the nightly description
1 parent 5de739e commit 97c6cae

4 files changed

Lines changed: 93 additions & 16 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,24 @@ jobs:
4545
4646
Link kept updated for every nightly build:
4747
48-
${{ github.event.repository.url }}/releases/download/nightly/ble-nightly.tar.xz
48+
${{ github.event.repository.html_url }}/releases/download/nightly/ble-nightly.tar.xz
4949
5050
Permalink to the current nightly build:
5151
52-
${{ github.event.repository.url }}/releases/download/nightly/ble-${{ env.blesh_build_pkgver }}.tar.xz
52+
${{ github.event.repository.html_url }}/releases/download/nightly/ble-${{ env.blesh_build_pkgver }}.tar.xz
5353
5454
```bash
5555
# DOWNLOAD with wget
56-
wget ${{ github.event.repository.url }}/releases/download/nightly/ble-nightly.tar.xz
56+
wget ${{ github.event.repository.html_url }}/releases/download/nightly/ble-nightly.tar.xz
5757
5858
# DOWNLOAD with curl
59-
curl -LO ${{ github.event.repository.url }}/releases/download/nightly/ble-nightly.tar.xz
59+
curl -LO ${{ github.event.repository.html_url }}/releases/download/nightly/ble-nightly.tar.xz
6060
6161
# DOWNLOAD with wget (this specific nightly build)
62-
wget ${{ github.event.repository.url }}/releases/download/nightly/ble-${{ env.blesh_build_pkgver }}.tar.xz
62+
wget ${{ github.event.repository.html_url }}/releases/download/nightly/ble-${{ env.blesh_build_pkgver }}.tar.xz
6363
6464
# DOWNLOAD with curl (this specific nightly build)
65-
curl -LO ${{ github.event.repository.url }}/releases/download/nightly/ble-${{ env.blesh_build_pkgver }}.tar.xz
65+
curl -LO ${{ github.event.repository.html_url }}/releases/download/nightly/ble-${{ env.blesh_build_pkgver }}.tar.xz
6666
```
6767
6868
**Trial & Install**
@@ -76,7 +76,7 @@ jobs:
7676
tar xJf ble-nightly.tar.xz
7777
bash ble-nightly/ble.sh --install ~/.local/share
7878
echo 'source ~/.local/share/blesh' >> ~/.bashrc
79-
# Note: After installation, directory ble-${{ env.blesh_build_pkgver }} can be removed.
79+
# Note: After installation, directory ble-nightly can be removed.
8080
8181
# INSTALL (more robust)
8282
tar xJf ble-nightly.tar.xz
@@ -85,8 +85,10 @@ jobs:
8585
[[ $- == *i* ]] && source ~/.local/share/blesh/ble.sh --attach=none
8686
# Add the following line at the end of ~/.bashrc
8787
[[ ! ${BLE_VERSION-} ]] || ble-attach
88-
# Note: After installation, directory ble-${{ env.blesh_build_pkgver }} can be removed.
88+
# Note: After installation, directory ble-nightly can be removed.
8989
```
90+
91+
If you try to install `ble-nightly-20240223+8f0dfe9` or an older version, please directly copy or rename the extracted directory to `~/.local/share/blesh`. The option `--install` is not implemented.
9092
check:
9193
needs: build
9294
strategy:

ble.pp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,12 @@ function ble/util/print { printf '%s\n' "$1"; }
113113
#%end.i
114114
_ble_init_exit=
115115
_ble_init_command=
116+
_ble_init_skip=
116117
for _ble_init_arg; do
118+
if [ -n "$_ble_init_skip" ]; then
119+
_ble_init_skip=
120+
continue
121+
fi
117122
case $_ble_init_arg in
118123
--version)
119124
_ble_init_exit=0
@@ -191,8 +196,13 @@ function ble/util/print { printf '%s\n' "$1"; }
191196
' Internal settings for debugging' \
192197
'' ;;
193198
--test | --update | --clear-cache | --lib | --install) _ble_init_command=1 ;;
199+
-o | --attach | --inputrc | --rcfile | --init-file | --bash-debug-version) _ble_init_skip=1 ;;
200+
-o* | --attach=* | --inputrc=* | --rcfile=* | --init-file=* | --bash-debug-version=*) ;;
201+
noattach | --noattach | --noinputrc | --norc | --keep-rlvars | --debug-bash-output) ;;
202+
-*) _ble_init_command=error ;;
194203
esac
195204
done
205+
unset _ble_init_skip
196206
unset _ble_init_arg
197207
if [ -n "$_ble_init_exit" ]; then
198208
unset _ble_init_exit

docs/ChangeLog.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
- main: fix attach failure with `--attach=prompt` in Bash 5.3 POSIX mode `#D2267` 49845707
2323
- syntax: fix a problem that `$_` is not preserved `#D2269` e053690d
2424
- keymap/vi: support bash-5.3 readline bindable function `bash-vi-complete` in `vi_nmap` `#D2305` 55e0ee71
25-
- syntax: parse function name as a word `#D2360` xxxxxxxx
26-
- util (`ble/builtin/trap/invoke.sandbox`): set `BASH_TRAPSIG` `#D2364` xxxxxxxx
25+
- syntax: parse function name as a word `#D2360` 72364a51
26+
- util (`ble/builtin/trap/invoke.sandbox`): set `BASH_TRAPSIG` `#D2364` 858630e5
2727
- bgproc: support opts `kill9-timeout=TIMEOUT` `#D2034` 3ab41652
2828
- progcomp(cd): change display name and support mandb desc (requested by EmilySeville7cfg) `#D2039` 74402098
2929
- cmdspec: add completion options for builtins (motivated by EmilySeville7cfg) `#D2040` 9bd24691
@@ -180,7 +180,7 @@
180180
- util (`bleopt`): fix a bug that previous match result for `<pattern>=` affects `var:=` `#D2352` 8bea90d1
181181
- util (`ble/string#quote-words`): correct the comparison operator (fixup 8bea90d1) (contributed by anoriqq)
182182
- syntax: fix a bug that the completion does not start with `<<[TAB]` `#D2354` 94109ea7
183-
- syntax: fix infinite loop with `case a in \^J` `#D2361` xxxxxxxx
183+
- syntax: fix infinite loop with `case a in \^J` `#D2361` 173ec27f
184184
- util (`ble/util/writearray`): fix a bug in use of gensub in gawk (reported by allenap, LeonardoMor, aaronjamt, ionesculiviucristian, Gabryx64) `#D2368`
185185
- complete: fix a bug that `mandb` record is generated as completions (reported by allenap) `#D2369` xxxxxxxx
186186

@@ -251,7 +251,7 @@
251251
- complete: fix stray `}` after the completion prefix (fixup 8bea90d1) (reported by cmndrsp0ck) `#D2359` c6bcb824
252252
- util (`ble/util/load-standard-builtins`): extend search paths `#D2357` 044c016a
253253
- canvas: avoid using <kbd>DL</kbd> at the top to clear lines (requeted by u/JustABro_2321 aka AB-boi) `#D2358` f6a3a116
254-
- edit: fix bash-3.2 problems of receiving <kbd>C-d</kbd> through `SIGUSR1` `#D2365` xxxxxxxx
254+
- edit: fix bash-3.2 problems of receiving <kbd>C-d</kbd> through `SIGUSR1` `#D2365` 38767afe
255255
- main: update messages for broken locale and environment `#D2370` xxxxxxxx
256256

257257
## Contrib
@@ -303,6 +303,7 @@
303303
- README: use `[[ ! ${BLE_VERSION-} ]] || ble-attach` `#D2264` ed11901a
304304
- github: update GitHub issue templates `#D2294` aa396f60
305305
- memo: fix syntax error in the testing code for #D1779 (reported by andychu) `#D2329`
306+
- github: fix URLs in the nightly description (reported by TheFozid) `#D2373` xxxxxxxx
306307

307308
## Test
308309

@@ -347,7 +348,7 @@
347348
- util (`ble/util/buffer.flush`): use <kbd>DECSET(2026)</kbd> in terminals with the support `#D2226` c3df08be
348349
- main: refactor initialization sequence `#D2231` cc9d7f39
349350
- util (`ble/util/is-stdin-ready`): check `$_ble_util_fd_tui_stdin` by default `#D2254` 29c00fd8
350-
- util (`ble/util/is-stdin-ready`): work around polling issue in Windows Terminal `#D2362` xxxxxxxx
351+
- util (`ble/util/is-stdin-ready`): work around polling issue in Windows Terminal `#D2362` 622cb247
351352
- decode (`ble-decode-key/bind`): reference the argument to check the widget name (contributed by musou1500) `#D2279` 21b1bb3d
352353
- global: normalize quoting of function names of the form `prefix:$name` `#D2296` 3d7c98bb
353354
- global: use `[:blank:]` instead of `[:space:]` `#D2299` e2fd8f0f
@@ -364,9 +365,9 @@
364365
- complete: rename key `{auto_complete => ac}_enter` `#D2342` a30125c4
365366
- color: change color representation for faithful 24-bit black (reported by seefood) `#D2351` 9ea84456
366367
- global: reduce the uses of `:`, `true`, and `false` `#D2353` 61a46734
367-
- global: use `ble/opts#extract-last-optarg` `#D2363` xxxxxxxx
368-
- global: use `source -- path` to source an arbitrary path `#D2366` xxxxxxxx
369-
- main: describe `--lib` in the output of `ble.sh --help` `#D2367` xxxxxxxx
368+
- global: use `ble/opts#extract-last-optarg` `#D2363` 1cfd6c0a
369+
- global: use `source -- path` to source an arbitrary path `#D2366` 3d2e230a
370+
- main: describe `--lib` in the output of `ble.sh --help` `#D2367` 9699ff6a
370371

371372
<!---------------------------------------------------------------------------->
372373
# ble-0.4.0-devel3

note.txt

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7852,6 +7852,70 @@ bash_tips
78527852
Done (実装ログ)
78537853
-------------------------------------------------------------------------------
78547854

7855+
2025-07-20
7856+
7857+
* 2025-06-20 github: nightly の URL が壊れている (reported by TheFozid) [#D2373]
7858+
https://github.com/akinomyoga/ble.sh/discussions/593#discussioncomment-13517431
7859+
7860+
github.event.repository.url には何か別の物が含まれている。これを使うように
7861+
したのは一番はじめからだったから途中で変更したことによって破壊したわけでは
7862+
ない。という事は GitHub の側が勝手に URL を変更したのが原因である。
7863+
7864+
だとすると正しい URL を含んでいるのは結局何処になるのだろう。検索してもそれ
7865+
に対応する文字列を取得する方法が分からない。結局 github を dump するしかな
7866+
いのだろうか。然しそれだと結局用途も分からないので、将来的に変更される可能
7867+
性についても分からない。
7868+
7869+
何れにしても github オブジェクトを dump したいがどの様にすれば良いだろうか。
7870+
→ toJSON(github) を実行すれば良い様だ。何れにしてもこれぐらいの基本的な事
7871+
は web 上で分かる様にするべきなのに全然情報が見つからない。実際に使ってみれ
7872+
ば分かるのだからという言い訳も分からなくもないが、これだと各項目に対する説
7873+
明が結局なされないし、将来的に自由に変更次第放題という事で何が信頼できるの
7874+
かどうかも分からない。良くない。
7875+
7876+
取り敢えず出力内容を見ると html_url というキーがある様なのでそれを使えば良
7877+
い。
7878+
7879+
https://github.com/akinomyoga/ble.sh/issues/603#issuecomment-3094391830
7880+
https://github.com/akinomyoga/ble.sh/issues/609#issuecomment-3094454145
7881+
7882+
また別の issue で古い nightly build で --install を使ってインストールしよう
7883+
とすると This is not an interactive session. のエラーメッセージが出るという
7884+
話をしている。そもそも古い version では --install に対応していないのである。
7885+
この場合には、This is not an interactive session ではなくて、オプションを認
7886+
識できませんというエラーメッセージを表示するべきである。
7887+
7888+
最新版でも認識できないオプションを指定しても non-interactive session では、
7889+
オプションのエラーを表示する前に単に This is not an interactive session. と
7890+
表示するだけである。これについては最初に真面目に解析するべきだろうか。然し、
7891+
そうすると色々複雑なことを POSIX sh の範囲で実装しなければならなくなる。
7892+
7893+
真面目に実装しようとすると -xyz の様な組み合わせフラグにも対応しなければな
7894+
らなくなるし、また、--option 及び --option=* にも対応しなければならなくなる。
7895+
其処までする必要があるだろうか。或いは近似的に知らない --xxxx が何処かに現
7896+
れていたらエラーを出力する? 然しそれだと別の引数の引数に "--xxx" という文字
7897+
列を渡したいだけの時に ble.sh を起動できなくなる。やはり真面目に解析しなけ
7898+
ればならないのだろうか…。
7899+
7900+
というよりそれを言い出したら今までだって "--test" がオプション引数等に含ま
7901+
れていた場合には、interactive check を突破してしまう様な振る舞いになってい
7902+
た。そういう意味でも、今回これを厳密に実装するというのには意味があるのかも
7903+
しれない。取り敢えず、実装してみる事にする。POSIX もしくは Bourne の範囲で
7904+
問題が生じる様ならその時点で対処する事にする。
7905+
7906+
取り敢えずエラーが発生するという事が分かったら interactive session ではなく
7907+
ても通過させる事にして、後の解析の段階でエラーメッセージを出させて抜ける様
7908+
にする。
7909+
7910+
? ok: 或いは、bash であることを確認したら interactive session であることの
7911+
チェックをするよりも前に直ぐに read-arguments を実施する? と思った
7912+
が、.bashrc で単純にに source ble.sh する人を想定して interactive sessino
7913+
の解析はできるだけ最初にやりたい (実際に現在の実装ではかなり最初にやって
7914+
いる)。一方で、フルのエラー検出及びエラーメッセージの表示をする為には、色々
7915+
関数も使いたいし bash の設定も保存・退避しておく必要がある。ということを
7916+
考えると、現状の様に最初に簡単なチェックをして、後でエラーを表示するとい
7917+
う方式で良いのではないかという気がする。
7918+
78557919
2025-07-17
78567920

78577921
* main: fix the error message of environment check (reported by LecrisUT) [#D2372]

0 commit comments

Comments
 (0)