Skip to content

should files from download be created non-executable instead of executable? #276

@petertseng

Description

@petertseng

Currently they're created executable, as https://github.com/exercism/cli/blob/master/cmd/download.go#L42 and https://github.com/exercism/cli/blob/master/cmd/download.go#L49 would have it. Need to think about whether that should be the case. Is the idea that some language tracks' submission files are meant to be executed directly?

However, when doing fetch, files are written 0644: https://github.com/exercism/cli/blob/master/user/item.go#L71 . And given that the Ruby track has an automated feedback for when Rubys submissions have shebangs, it makes it seem more likely those 0755 should be change to 0644.

Any specific reason to keep at 0755?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions