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

"Change file permissions" step reported as failed on OSX Mojave #1743

Closed
RussKie opened this issue Jan 17, 2019 · 1 comment
Closed

"Change file permissions" step reported as failed on OSX Mojave #1743

RussKie opened this issue Jan 17, 2019 · 1 comment
Assignees
Labels
size:3.0 triaged The issue was evaluated by the triage team, placed on correct area, next action defined.

Comments

@RussKie
Copy link
Member

RussKie commented Jan 17, 2019

The environment:

OSX 10.14.1

~/MacDev$ /bin/bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
Copyright (C) 2007 Free Software Foundation, Inc.

~/MacDev$ dotnet --version
2.1.302

~/MacDev$ dotnet new --debug:version
Template Instantiation Commands for .NET Core CLI

 Version:     1.0.2-beta3
 Commit Hash: c0f84b79c361e961a699a5c70d255db11c0d411c

My template.json (snip):

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

The issue

When I execute the template I get the following output:

~/MacDev$ dotnet new  mytemplate -n 'myprojectname' --force
The template "My Template" was created successfully.

Processing post-creation actions...
The files /Users/user/MacDev/myprojectname/chmod, /Users/user/MacDev/myprojectname/+x, and /Users/user/MacDev/myprojectname/*.sh donot exist.
Unable to apply permissions +x to "*.sh".
Post action failed.
Description: Make scripts executable
Manual instructions: Run 'chmod +x *.sh'

However it seems that permissions do get applied, as the following steps in the template run those scripts without errors.

@donJoseLuis donJoseLuis added needsprioritization triaged The issue was evaluated by the triage team, placed on correct area, next action defined. labels Mar 19, 2020
@AR-May
Copy link
Member

AR-May commented Oct 15, 2020

Hello @RussKie, thank you for the detailed information.
This issue should be fixed within PR #1555 and PR #2579, the root of the problem seems to be the same as in issue #2072.

@AR-May AR-May self-assigned this Oct 15, 2020
@AR-May AR-May closed this as completed Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:3.0 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