| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | function show() { |
| 6 | printf "\u001b[35m$1\u001b[0m\n" |
| 7 | } |
| 8 | |
| 9 | ## NOTE: this step is disabled in v_apps_and_modules_compile_ci.yml via `${{ false && ... }}`. |
| 10 | ## Reason: discord.v uses x.json2.raw_decode which was deprecated-as-error in V on 2025-10-10. |
| 11 | ## The upstream repo (vcv88/discord.v) has not been updated since Dec 2024. |
| 12 | ## Re-enable both the yml step and this script once vcv88/discord.v#21 is resolved. |
| 13 | ## Track: https://github.com/vlang/v/issues/26853 |
| 14 | |
| 15 | rm -rf discord/ |
| 16 | |
| 17 | show "Clone https://github.com/vcv88/discord.v" |
| 18 | v retry -- git clone --filter=blob:none --quiet https://github.com/vcv88/discord.v discord/ |
| 19 | cd discord/ |
| 20 | show "Checkout last known good commit" |
| 21 | git checkout ce9ff457fce92d5bb15df2974440cd8292457ee0 |
| 22 | show "Execute Tests" |
| 23 | v test . |
| 24 | cd .. |
| 25 | rm -rf discord/ |
| 26 | |