summaryrefslogtreecommitdiff
path: root/internal/io/fs/readfile_nozstd.go
blob: afd45231606e86ea90b7bf899ac7c13359baeede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//go:build nozstd

package fs

import (
	"bufio"
	"fmt"
	"io"
	"os"
)

func (f *readFile) makeZstdReader(fd *os.File) (reader *bufio.Reader, decompressor io.Closer, err error) {
	_ = fd
	err = fmt.Errorf("%s: zstd is not supported in this build (built with -tags nozstd)", f.FilePath())
	return
}