generator-jhipster: Scripts and binaries are not executable

On the latest v8 beta release, executables like ./gradlew, kubectl-apply-sh etc are not executable and I had to do chmod +x on all of them. Can someone confirm if its just me or the file templates are indeed not executable

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 1
  • Comments: 22 (22 by maintainers)

Most upvoted comments

There is no issue with source code. The issue is with released package. Releases should be created with posix computers (don’t know if that is the case) otherwise the executable bit will be missing. Can only be fixed by whom have release rights.

I suppose this was fixed by v8.0.0-beta.3

Yes, npmw and gradlew now have the correct executable permissions on linux.

@DanielFran The git filemode is configured correctly but you may want to double check locally :

jelharou@penguin:~/jelharou/generator-jhipster$ more .git/config 
[core]
        repositoryformatversion = 0
        filemode = true

Apart from deploying from a non windows machine, we could add a postinstall script to the package.json but that will be cumbersome as there are many files and they depend on the individual project configuration.

@mraible suggestion to use a publish action may be ideal.

Maybe we should publish the release using GitHub Actions and build it with Ubuntu?

I use a publish action for OktaDev Schematics. It publishes to npmjs.org when a release is created.