Skip to content

Commit ed17567

Browse files
kruskallRaduBerinde
authored andcommitted
feat: add gozstd build tag to allow to configure zstd lib
Add a build tag that lets developers choose the zstd library. The current cgo implementation dramatically slows down builds and tests, and it blocks non‑cgo projects from running tests with the race detector unless they also switch the underlying library
1 parent 4264547 commit ed17567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/compression/zstd_cgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// of this source code is governed by a BSD-style license that can be found in
33
// the LICENSE file.
44

5-
//go:build cgo
5+
//go:build cgo && !gozstd
66

77
package compression
88

0 commit comments

Comments
 (0)