rclone/fs/rc
Ole Frost 58c99427b3 config: fixed issues with flags/options set by environment vars.
Some environment variables didn’t behave like their corresponding
command line flags. The affected flags were --stats, --log-level,
--separator, --multi-tread-streams, --rc-addr, --rc-user and --rc-pass.
Example:

    RCLONE_STATS='10s'
    rclone check remote: remote: --progress
    # Expected: rclone check remote: remote: --progress –-stats=10s
    # Actual: rclone check remote: remote: --progress

Remote specific options set by environment variables was overruled by
less specific backend options set by environment variables. Example:

    RCLONE_DRIVE_USE_TRASH='false'
    RCLONE_CONFIG_MYDRIVE_USE_TRASH='true'
    rclone deletefile myDrive:my-test-file
    # Expected: my-test-file is recoverable in the trash folder
    # Actual: my-test-file is permanently deleted (not recoverable)

Backend specific options set by environment variables was overruled by
general backend options set by environment variables. Example:

    RCLONE_SKIP_LINKS='true'
    RCLONE_LOCAL_SKIP_LINKS='false'
    rclone lsd local:
    # Expected result: Warnings when symlinks are skipped
    # Actual result: No warnings when symlinks are skipped
    # That is RCLONE_SKIP_LINKS takes precedence

The above issues have been fixed.

The debug logging (-vv) has been enhanced to show when flags are set by
environment variables.

The documentation has been enhanced with details on the precedence of
configuration options.

See pull request #5341 for more information.
2021-07-05 16:38:20 +01:00
..
jobs Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
js js: add experimental interface for integrating rclone into browsers 2020-08-10 17:32:21 +01:00
rcflags rcd: Add Prometheus metrics support - fixes #3858 2020-03-01 09:58:34 +00:00
rcserver lib/http: Move HTTP object serialization logic to lib/http 2021-04-28 22:54:15 +01:00
webgui plugins: Move plugins cache path initialization to initPluginsOrError. 2021-01-28 16:58:23 +00:00
cache.go rc: allow fs= params to be a JSON blob 2021-03-30 17:07:27 +01:00
cache_test.go rc: allow fs= params to be a JSON blob 2021-03-30 17:07:27 +01:00
config.go rc: fix options/local to return the filter options 2021-02-23 10:33:03 +00:00
config_test.go rc: add context to flag Reload function #4685 2020-11-27 17:28:42 +00:00
internal.go version: show build tags and type of executable 2021-03-22 22:55:24 +03:00
internal_test.go rc: fix core/command giving 500 internal error - fixes #4914 2021-01-10 16:34:46 +00:00
params.go rc: factor rc.Error out of rcserver for re-use in librclone #4891 2021-03-30 12:46:05 +01:00
params_test.go fs/rc: add Copy method to rc.Params 2021-01-10 16:34:46 +00:00
rc.go rcd: Add Prometheus metrics support - fixes #3858 2020-03-01 09:58:34 +00:00
rc_test.go fs/rc: add more infrastructure to help writing rc functions 2018-11-02 17:32:20 +00:00
registry.go config: fixed issues with flags/options set by environment vars. 2021-07-05 16:38:20 +01:00