From fa4fbc23a5978119b0714ff10aea29f0c8615c3d Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Mon, 3 Aug 2026 14:55:27 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20compatibilit=C3=A9=20V=20latest=20?= =?UTF-8?q?=E2=80=94=20import=20sources=20et=20signal=5Fopt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - docker_watcher.v: 'import sources as _' → 'import sources' (le _ supprimait les symboles dans V récent) - server.v: os.new_signal_channel → os.signal_opt (API retirée dans V latest) - server.v: 'import json' déprécié → 'import x.json2 as json' --- docker_watcher.v | 2 +- server.v | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker_watcher.v b/docker_watcher.v index 602a6f3..205af55 100644 --- a/docker_watcher.v +++ b/docker_watcher.v @@ -5,7 +5,7 @@ $if linux || macos { import net.unix import os } -import sources as _ +import sources fn (mut app App) docker_watch_loop() { $if linux || macos { diff --git a/server.v b/server.v index bf4d952..b39ac3c 100644 --- a/server.v +++ b/server.v @@ -2,7 +2,7 @@ module main import net.http import time -import json +import x.json2 as json import crypto.hmac import crypto.sha256 import encoding.hex @@ -120,7 +120,8 @@ pub fn (mut app App) run() ! { $if linux || macos { fn (mut app App) handle_signals() { - sigch := os.new_signal_channel(.int, .term, .hup) + mut sigch := chan os.Signal{cap: 10} + os.signal_opt(mut sigch, .int, .term, .hup) or { panic(err) } for { sig := <-sigch match sig {