Repository navigation
Conversation
Member
|
hi @uveshm003, thanks for opening a PR! we will hold on this one since the feature it's still not supported as part of the Dart CLI template, we will track this change when it's published already, so if it's good with you, we'll close this PR since we can't test this with the current template bundle in the CLI. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status
READY
Description
Closes #1783
Mason doesn't keep file permissions, so the
bin/<executable_name>.dartentrypoint of avery_good create dart_cliproject wasn't executable. very_good_templates#664 does thechmodin the brick'spost_genhook, but Very Good CLI never runspost_genhooks.This PR:
makeEntrypointsExecutabletopost_generate_actions.dart. It runschmod +xon the.dartfiles in the generatedbindirectory. It does nothing on Windows, or when there is nobindirectory or no Dart files in it.Chmodwrapper inlib/src/cli/so the call goes through_CmdandProcessOverrides, likeGitandDartVeryGoodDartCLITemplate.onGenerateComplete, afterpub get/dart fixI matched
bin/*.dartinstead of passingexecutable_namethrough, becauseonGenerateCompletedoesn't receive the template vars.Tests:
test/src/cli/chmod_cli_test.dartchecks thechmod +x <paths>invocationdart_cli_test.dartcreates a project whosebinholdsmy_executable.dartandREADME.md, then checks that only the Dart file gets the owner-execute bit. A second test checks that abinwith no Dart files is left alone. Both are skipped on Windows. The first test fails without the change.dart analyze --fatal-infos --fatal-warnings .anddart format lib testare clean.Type of Change