mouse0w0 / forge-mixin-example

An example for using Mixin in Minecraft Forge 1.12.2 & 1.8.9
The Unlicense
113 stars 19 forks source link

gradlew is not executable #12

Closed anatawa12 closed 2 years ago

anatawa12 commented 2 years ago

could you add the executable flag to make it easy to develop from POSIX-like platforms.

mouse0w0 commented 2 years ago

gradlew is provided by Gradle. What's wrong with it? Please describe your problem clearly.

anatawa12 commented 2 years ago

The executable flag in posix file mode of gradlew file is not sey. Please set executable flag.

What's executable flag? What's posix file mode?

Posix-like systems has simple permission system. The permission system has 3 flags for 3 tagets, in total 9 flags. We may call the flags as 'file mode'. The 3 flags are readable, writable, and executable. If executable flag is not set, we can't run execute a file as a command.

In the MS-DOS and Windows, there's no such a permission system so you can run 'gradlew' to run 'gradlew.bat' so git on windows often drops the flag.

Why posix flag is relates to the repository?

The Git controls the posix file mode.

How to add executable flag

If your OS is posix (like linux, macos, *BSD), chmod +x gradlew to add executable flag and git add&commit. If your os is not posix (like MS-DOS family like windows), git update-index --chmod=+x gradlew to add executable flag on git index tree and commit.

mouse0w0 commented 2 years ago

OK, I get it. Thank you for your contribution.