mirror of
https://github.com/rclone/rclone.git
synced 2026-01-06 02:23:24 +00:00
build: add build tag noselfupdate
Allow downstream packaging to build rclone without selfupdate command: $ go build -tags noselfupdate Fixes #5187
This commit is contained in:
committed by
Nick Craig-Wood
parent
12d039261f
commit
9e2e2bb5fc
7
cmd/selfupdate_enabled.go
Normal file
7
cmd/selfupdate_enabled.go
Normal file
@@ -0,0 +1,7 @@
|
||||
// +build !noselfupdate
|
||||
|
||||
package cmd
|
||||
|
||||
// This constant must be in the `cmd` package rather than `cmd/selfupdate`
|
||||
// to prevent build failure due to dependency loop.
|
||||
const selfupdateEnabled = true
|
||||
Reference in New Issue
Block a user