Skip to content

remote.py: Add support for marking downloaded files executable

Description

When downloading a file from the internet using the remote plugin, the user might want to mark it executable. Our use case for this is for downloading pre-built versions of bazel from the release pages for use in builds. They clearly need to be marked executable to be usable.

An alternative approach would be to use install commands to make the file executable after download but this becomes fiddly and repetitive if required for many elements.

Changes proposed in this merge request:

  • Add option to mark downloaded files as executable in the remote plugin
  • Add tests

I am unsure as to whether I need to bump the format version, do I?

Merge request reports

Loading