Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post-actions chmod - No such file #1804

Closed
CumpsD opened this issue Mar 26, 2019 · 4 comments
Closed

Post-actions chmod - No such file #1804

CumpsD opened this issue Mar 26, 2019 · 4 comments
Assignees
Labels
need-customer-info Requires feedback from author triaged The issue was evaluated by the triage team, placed on correct area, next action defined.

Comments

@CumpsD
Copy link

CumpsD commented Mar 26, 2019

Given:
https://github.com/dotnet/templating/wiki/Post-Action-Registry#change-file-permissions

  "postActions": [
  {
    "condition": "(OS != \"Windows_NT\")",
    "description": "Make build script executable",
    "manualInstructions": [ { "text": "Run 'chmod +x build.sh'" }  ],
    "actionId": "cb9a6cf3-4f5c-4860-b9d2-03a574959774",
    "args": {
      "+x": "build.sh"
    },
    "continueOnError": true
  }]

I get as output:

Processing post-creation actions...
No such file or directory

But the file is there:

/d/T/template-test  la                                                                                                                                                                                                                   1242ms  Tue 2019-03-26 // 16:58
total 1.0M
drwxr-xr-x 1 cumpsd docker  512 Mar 26 16:58 ./
drwxr-xr-x 1 cumpsd docker  512 Mar 26 10:46 ../
-rw-r--r-- 1 cumpsd docker  304 Mar 26 16:58 build.sh

Anybody any ideas on how to debug this?

@mlorbetske
Copy link
Contributor

It looks like this is a duplicate of #1743 - could you confirm please?

@CumpsD
Copy link
Author

CumpsD commented Mar 26, 2019

It is similar, except it is in WSL instead of OSX. And the permissions do not get applied at all, as opposed to the case on OSX where it apparently does at least get applied.

It also does not print the manual instructions on failure.

@donJoseLuis donJoseLuis added needsprioritization triaged The issue was evaluated by the triage team, placed on correct area, next action defined. and removed needs-prioritization labels Mar 20, 2020
@AR-May AR-May self-assigned this Oct 14, 2020
@AR-May
Copy link
Member

AR-May commented Oct 14, 2020

Hello @CumpsD! Is this still an issue?
If yes, could you please provide the dotnet version (output of dotnet --version and dotnet new --debug:version)?

@AR-May AR-May added the need-customer-info Requires feedback from author label Oct 14, 2020
@AR-May
Copy link
Member

AR-May commented Oct 26, 2020

Closing this issue. It is my understanding that this was fixed within issue #2072. Please do not hesitate to reopen if I am wrong.

@AR-May AR-May closed this as completed Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-customer-info Requires feedback from author triaged The issue was evaluated by the triage team, placed on correct area, next action defined.
Projects
None yet
Development

No branches or pull requests

4 participants