[#970] fstree: Add build tag to enable generic version on linux
All checks were successful
Vulncheck / Vulncheck (pull_request) Successful in 2m51s
DCO action / DCO (pull_request) Successful in 2m37s
Build / Build Components (1.21) (pull_request) Successful in 4m9s
Build / Build Components (1.20) (pull_request) Successful in 4m16s
Tests and linters / Staticcheck (pull_request) Successful in 6m6s
Tests and linters / Lint (pull_request) Successful in 6m55s
Tests and linters / Tests (1.20) (pull_request) Successful in 6m57s
Tests and linters / Tests (1.21) (pull_request) Successful in 7m7s
Tests and linters / Tests with -race (pull_request) Successful in 7m3s

Unless tested, generic version can start gaining bugs. With a separate
build tag we can have the best of both worlds:
1. Use optimized implementation for linux by default.
2. Run tests or benchmarks for both. Note that they are not actually
   run automatically now, but this is at leas possible.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-02-08 21:07:02 +03:00
parent 1761f2538b
commit d14d065fdc
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
//go:build linux
//go:build linux && !fstree_generic
package fstree

View file

@ -1,4 +1,4 @@
//go:build !linux
//go:build !linux || fstree_generic
package fstree