From 44429e28641bc1ded52ce381502d0a730a9b28fb Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 20 Jul 2025 12:47:26 +1000 Subject: [PATCH] Don't build ./fs on Windows --- fs/cmd/torrentfs/main.go | 2 ++ fs/file_handle.go | 2 ++ fs/filenode.go | 2 ++ fs/stream-sintel_test.go | 2 ++ fs/torrentfs.go | 2 ++ fs/torrentfs_test.go | 2 ++ 6 files changed, 12 insertions(+) diff --git a/fs/cmd/torrentfs/main.go b/fs/cmd/torrentfs/main.go index d35f5c23..5bc50ade 100644 --- a/fs/cmd/torrentfs/main.go +++ b/fs/cmd/torrentfs/main.go @@ -1,3 +1,5 @@ +//go:build !windows + // Mounts a FUSE filesystem backed by torrents and magnet links. package main diff --git a/fs/file_handle.go b/fs/file_handle.go index ce5ded0b..9a64bb57 100644 --- a/fs/file_handle.go +++ b/fs/file_handle.go @@ -1,3 +1,5 @@ +//go:build !windows + package torrentfs import ( diff --git a/fs/filenode.go b/fs/filenode.go index 28a433e1..7054ee7b 100644 --- a/fs/filenode.go +++ b/fs/filenode.go @@ -1,3 +1,5 @@ +//go:build !windows + package torrentfs import ( diff --git a/fs/stream-sintel_test.go b/fs/stream-sintel_test.go index 3dd57a22..13321523 100644 --- a/fs/stream-sintel_test.go +++ b/fs/stream-sintel_test.go @@ -1,3 +1,5 @@ +//go:build !windows + package torrentfs_test import ( diff --git a/fs/torrentfs.go b/fs/torrentfs.go index f011d19b..1003c010 100644 --- a/fs/torrentfs.go +++ b/fs/torrentfs.go @@ -1,3 +1,5 @@ +//go:build !windows + package torrentfs import ( diff --git a/fs/torrentfs_test.go b/fs/torrentfs_test.go index 80bd02e7..3630d6c6 100644 --- a/fs/torrentfs_test.go +++ b/fs/torrentfs_test.go @@ -1,3 +1,5 @@ +//go:build !windows + package torrentfs import ( -- 2.51.0