Skip to content

cmd/version: add info about build #5091

Closed

Description

@ivandeex

What is your current rclone version (output from rclone version)?

1.54.0

What problem are you are trying to solve?

(from https://forum.rclone.org/t/rclone-cmount-on-linux/22602/4)

Knowing whether it is a CGO enabled build or not (so whether it is static or dynamic) would be really useful for debugging DNS problems.

Knowing build tags would be useful too. For example, only cmount builds support passing custom libfuse flags. (See #3545 for an example why it matters).

How do you think rclone should be changed to solve that?

rclone version output should look like below:

rclone v1.54.0
- os/arch: linux/amd64
- go version: go1.15.7
- executable: static (dynamic)
- tags: cmount (none)

Additionally, rclone selfupdate should refuse update if the running executable supports cmount but the update would remove it (and consequently break tooling wrappers).

Implementation details:
We'd have to pass the build tags into a variable in the Makefile (and probably a built by CGO flag)

Activity

  1. self-assigned this
    on Mar 4, 2021
  2. ivandeex commented on Mar 13, 2021

    @ivandeex
    MemberAuthor

    Related to #5121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions