Skip to content

Commit 7696723

Browse files
committed
Add more build tags to reduce binary size
1 parent a9f7cc1 commit 7696723

18 files changed

+88
-2
lines changed

pkg/yqlib/decoder_base64.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
//go:build !yq_nobase64
3+
14
package yqlib
25

36
import (

pkg/yqlib/decoder_csv_object.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
//go:build !yq_nocsv
3+
14
package yqlib
25

36
import (

pkg/yqlib/decoder_properties.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !yq_noprops
2+
13
package yqlib
24

35
import (

pkg/yqlib/decoder_uri.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !yq_nouri
2+
13
package yqlib
24

35
import (

pkg/yqlib/encoder_base64.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !yq_nobase64
2+
13
package yqlib
24

35
import (

pkg/yqlib/encoder_csv.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !yq_nocsv
2+
13
package yqlib
24

35
import (

pkg/yqlib/encoder_properties.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !yq_noprops
2+
13
package yqlib
24

35
import (

pkg/yqlib/encoder_sh.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !yq_nosh
2+
13
package yqlib
24

35
import (

pkg/yqlib/encoder_shellvariables.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !yq_noshell
2+
13
package yqlib
24

35
import (

pkg/yqlib/encoder_uri.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !yq_nouri
2+
13
package yqlib
24

35
import (

0 commit comments

Comments
 (0)