1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: =?utf-8?b?T3R0byBLZWvDpGzDpGluZW4=?= <otto@debian.org>
Date: Fri, 29 Nov 2024 01:08:25 -0800
Subject: Disable network calls in the Debian package
The Debian builds run in a hermetic environment that has no external
access neither in nor out. This ensures high level of reproducibility,
stability and security. Glow should refactor these tests so that they
only run if the build is called with some special debug/test tag, or
have a pre-test that skips the tests automatically if there is no network
connection at all.
Upstream-bug: https://github.com/charmbracelet/glow/issues/660
---
glow_test.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/glow_test.go b/glow_test.go
index 8743be2..f0632e2 100644
--- a/glow_test.go
+++ b/glow_test.go
@@ -1,3 +1,5 @@
+// +build test
+
package main
import (
|