Skip to content

Commit

Permalink
Released 2.0.0-beta.13.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutton committed Oct 29, 2022
1 parent 623f106 commit 6d17a0e
Show file tree
Hide file tree
Showing 22 changed files with 60 additions and 34 deletions.
21 changes: 21 additions & 0 deletions dcli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# 2.0.0-beta.13
- BREAKING: removed the args and path package exports from the dcli lib. This doesn't feel like the correct approach and does add to namespace pollution.
- FIX: mac os install issue. core problem is that the home directory wasn't being set correctly as the mac getpwd command doesn't reutrn the users home directory.
- FIX: a bug in macosinstall. It had the logic on testing if dart was installed backward but this was protected by a second bug that allowed the install to continue even when dart isn't installed.
- Fix: a late final error in posix_shell.
- Added ability to pass a specific version to the global activate command.
- Added better error handling for the package compile option.
- Added experimental command to lock the pubspec versions to ensure released code always runs.
- Moved the command package up to the root of src.
- Added additional logging to the release and restorePrivileges functions.
- Added a verbose flag to the PubCache.globalActivate function to aid debugging.
- Added verbose logging to the which funciton.
- Added exception handler at top level for install exceptions so we get clean errors out.
- Improved the logging of the exists function.
- renamed InvalidArgumentsException to InvalidArgumentException
- re-ordered the seteuid calls so that we are still privileged when we call them.
- reverted the sudo install instructions as sudo -E doesn't seem to work in all cases. The PATH doesn't seem to work in findling dcli.
- repackaged templates.
- Fixed to settings_test, now that logger is more verbose.
- upgraded to dart_posix 4.1.0 to fix macos gecos issue.

# 2.0.0-beta.12
- FIX: bug in ask regex validator that was pushing results to lowercase.
- change capitalisation for the dcli doctor output for consistency.
Expand Down
2 changes: 1 addition & 1 deletion dcli/lib/src/commands/upgrade.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class UpgradeCommand extends Command {
PubCache().globalActivateFromSource(DartProject.self.pathToProjectRoot);
} else {
/// activate from pub.dev
PubCache().globalActivate('dcli', version: packageVersion);
PubCache().globalActivate('dcli', version: packageVersion);
}
verbose(() => 'dart pub global activate dcli finished');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class A06d49b67b870c49c422343065070f397 extends PackedResource {
/// this checksum
@override
String get checksum =>
'6dae79fe5d7699fae48f976c6d425d3edf13581db684e288dedb9bda7cec9f6f';
'48a5ea9cbcddda6d3d5aa113946e09c085da89dd363357c66299e804b89ae771';

/// <package>/resources relative path to the original resource.
@override
Expand All @@ -35,7 +35,7 @@ class A06d49b67b870c49c422343065070f397 extends PackedResource {
String get content => '''
bmFtZTogc2NyaXB0bmFtZQp2ZXJzaW9uOiAwLjAuMQpkZXNjcmlwdGlvbjogQSBzY3JpcHQgZ2VuZXJh
dGVkIGJ5IGRjbGkuCmVudmlyb25tZW50OiAKICBzZGs6ICc+PTIuMTguMCA8My4wLjAnCmRlcGVuZGVu
Y2llczogCiAgZGNsaTogXjIuMC4wLWJldGEuMTIKICBkY2xpX2NvcmU6IF4yLjAuMC1iZXRhLjEyCiAg
Y2llczogCiAgZGNsaTogXjIuMC4wLWJldGEuMTMKICBkY2xpX2NvcmU6IF4yLjAuMC1iZXRhLjEzCiAg
cGF0aDogXjEuMC4wCmRldl9kZXBlbmRlbmNpZXM6IAogIGxpbnRfaGFyZDogXjIuMC4wCg==
''';
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class A07aa86cf4c4246ad598cd362ee228bc4 extends PackedResource {

/// <package>/resources relative path to the original resource.
@override
String get originalPath => 'template/project/full/lib/src/exceptions/app_exception.dart';
String get originalPath =>
'template/project/full/lib/src/exceptions/app_exception.dart';

@override
String get content => '''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class A117670ecffdae99646ec89b9fac5f34f extends PackedResource {
/// this checksum
@override
String get checksum =>
'ae767223c7d939b5911ae75a96936ee431026181d7e228a2cc368241e8bb0b5a';
'62790ab579225d1cc195d809abc70ddbbf7caa14056e31674a5ef3433cc84ac6';

/// <package>/resources relative path to the original resource.
@override
Expand All @@ -35,8 +35,8 @@ class A117670ecffdae99646ec89b9fac5f34f extends PackedResource {
String get content => '''
bmFtZTogY29uc29sZV9zaW1wbGUKdmVyc2lvbjogMC4wLjEKZGVzY3JpcHRpb246IEEgc2ltcGxlIGNv
bW1hbmQtbGluZSBhcHBsaWNhdGlvbiBjcmVhdGVkIGJ5IGRjbGkKZW52aXJvbm1lbnQ6IAogIHNkazog
Jz49Mi4xOC4wIDwzLjAuMCcKZGVwZW5kZW5jaWVzOiAKICBkY2xpOiBeMi4wLjAtYmV0YS4xMgogIGRj
bGlfY29yZTogXjIuMC4wLWJldGEuMTIKZGV2X2RlcGVuZGVuY2llczogCiAgbGludF9oYXJkOiBeMi4w
Jz49Mi4xOC4wIDwzLjAuMCcKZGVwZW5kZW5jaWVzOiAKICBkY2xpOiBeMi4wLjAtYmV0YS4xMwogIGRj
bGlfY29yZTogXjIuMC4wLWJldGEuMTMKZGV2X2RlcGVuZGVuY2llczogCiAgbGludF9oYXJkOiBeMi4w
LjAK
''';
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class A11add8376c80bbf88e645723e11f097a extends PackedResource {
/// this checksum
@override
String get checksum =>
'807e5baa6009e40e3591c60552c642b9fee731d08bf59fcd2b4048f5b5848129';
'eeb55d371593fbc93f053f85296bf0b17f89eb968a4d6034eb28db147cfca07c';

/// <package>/resources relative path to the original resource.
@override
Expand All @@ -37,7 +37,7 @@ bmFtZTogZnVsbAp2ZXJzaW9uOiAwLjAuMQpwdWJsaXNoX3RvOiBodHRwczovL2JldGEub25lcHViLmRl
di9hcGkvamJieHBzZGF2dS8KZGVzY3JpcHRpb246IEEgc2FtcGxlIGNvbW1hbmQtbGluZSBhcHBsaWNh
dGlvbiB0aGF0IGluc3RhbGxzIGFuZCBydW5zIG1haWxob2cKZW52aXJvbm1lbnQ6IAogIHNkazogJz49
Mi4xOC4wIDwzLjAuMCcKZGVwZW5kZW5jaWVzOiAKICBhcmdzOiBeMi4zLjEKICBkY2xpOiBeMi4wLjAt
YmV0YS4xMgogIGRjbGlfY29yZTogXjIuMC4wLWJldGEuMTIKICBodHRwOiBeMC4xMy40CiAgc2V0dGlu
YmV0YS4xMwogIGRjbGlfY29yZTogXjIuMC4wLWJldGEuMTMKICBodHRwOiBeMC4xMy40CiAgc2V0dGlu
Z3NfeWFtbDogXjUuMC4wLWJldGEuMQpkZXZfZGVwZW5kZW5jaWVzOiAKICBsaW50X2hhcmQ6IF4yLjAu
MApleGVjdXRhYmxlczogCiAgZnVsbDogCg==
''';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class A26650b6f9160d7c2bc268042340fb6cc extends PackedResource {

/// <package>/resources relative path to the original resource.
@override
String get originalPath => 'template/project/full/lib/src/commands/install.dart';
String get originalPath =>
'template/project/full/lib/src/commands/install.dart';

@override
String get content => '''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class A3fdab27388188732f2327c4661480284 extends PackedResource {

/// <package>/resources relative path to the original resource.
@override
String get originalPath => 'template/project/full/lib/src/settings/app_settings.dart';
String get originalPath =>
'template/project/full/lib/src/settings/app_settings.dart';

@override
String get content => '''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class A7a274a7e2807d7c7a7397f68e234c2fe extends PackedResource {

/// <package>/resources relative path to the original resource.
@override
String get originalPath => 'template/project/full/lib/src/commands/config.dart';
String get originalPath =>
'template/project/full/lib/src/commands/config.dart';

@override
String get content => '''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Ab3d3a29275d9f1652f2de5c6e4115a24 extends PackedResource {
/// this checksum
@override
String get checksum =>
'2cae275bba853e810d9f223152cd43f18bc89742b75d3e8a1d30587fb21fa4b4';
'e2b49afb70f8b86d5e3d078b0d994e3f07f2f1076ef2f6793092b3a4d0d4c3db';

/// <package>/resources relative path to the original resource.
@override
Expand All @@ -35,7 +35,7 @@ class Ab3d3a29275d9f1652f2de5c6e4115a24 extends PackedResource {
String get content => '''
bmFtZTogY29uc29sZV9zaW1wbGUKdmVyc2lvbjogMC4wLjEKZGVzY3JpcHRpb246IEEgc2ltcGxlIGNv
bW1hbmQtbGluZSBhcHBsaWNhdGlvbiBjcmVhdGVkIGJ5IGRjbGkKZW52aXJvbm1lbnQ6IAogIHNkazog
Jz49Mi4xOC4wIDwzLjAuMCcKZGVwZW5kZW5jaWVzOiAKICBkY2xpOiBeMi4wLjAtYmV0YS4xMgogIGRj
bGlfY29yZTogXjIuMC4wLWJldGEuMTIKICBsaW50X2hhcmQ6IF4yLjAuMAo=
Jz49Mi4xOC4wIDwzLjAuMCcKZGVwZW5kZW5jaWVzOiAKICBkY2xpOiBeMi4wLjAtYmV0YS4xMwogIGRj
bGlfY29yZTogXjIuMC4wLWJldGEuMTMKICBsaW50X2hhcmQ6IF4yLjAuMAo=
''';
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class Acd63c1fd5280c24b38cf507ab99ff676 extends PackedResource {

/// <package>/resources relative path to the original resource.
@override
String get originalPath => 'template/project/full/lib/src/args/global_args.dart';
String get originalPath =>
'template/project/full/lib/src/args/global_args.dart';

@override
String get content => '''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Af621a8bd8d9680d9847c1d0246fa9ffe extends PackedResource {
/// this checksum
@override
String get checksum =>
'6dae79fe5d7699fae48f976c6d425d3edf13581db684e288dedb9bda7cec9f6f';
'48a5ea9cbcddda6d3d5aa113946e09c085da89dd363357c66299e804b89ae771';

/// <package>/resources relative path to the original resource.
@override
Expand All @@ -35,7 +35,7 @@ class Af621a8bd8d9680d9847c1d0246fa9ffe extends PackedResource {
String get content => '''
bmFtZTogc2NyaXB0bmFtZQp2ZXJzaW9uOiAwLjAuMQpkZXNjcmlwdGlvbjogQSBzY3JpcHQgZ2VuZXJh
dGVkIGJ5IGRjbGkuCmVudmlyb25tZW50OiAKICBzZGs6ICc+PTIuMTguMCA8My4wLjAnCmRlcGVuZGVu
Y2llczogCiAgZGNsaTogXjIuMC4wLWJldGEuMTIKICBkY2xpX2NvcmU6IF4yLjAuMC1iZXRhLjEyCiAg
Y2llczogCiAgZGNsaTogXjIuMC4wLWJldGEuMTMKICBkY2xpX2NvcmU6IF4yLjAuMC1iZXRhLjEzCiAg
cGF0aDogXjEuMC4wCmRldl9kZXBlbmRlbmNpZXM6IAogIGxpbnRfaGFyZDogXjIuMC4wCg==
''';
}
2 changes: 1 addition & 1 deletion dcli/lib/src/version/version.g.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/// GENERATED BY pub_release do not modify.
/// dcli version
String packageVersion = '2.0.0-beta.12';
String packageVersion = '2.0.0-beta.13';
4 changes: 2 additions & 2 deletions dcli/test/src/functions/copy_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'package:dcli/dcli.dart' ;
import 'package:path/path.dart'hide equals;
import 'package:dcli/dcli.dart';
import 'package:path/path.dart' hide equals;
import 'package:test/test.dart';

void main() {
Expand Down
2 changes: 1 addition & 1 deletion dcli/test/src/functions/fetch_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'dart:io';

import 'package:dcli/dcli.dart';
import 'package:dcli/src/util/parser.dart';
import 'package:path/path.dart' hide equals;
import 'package:path/path.dart' hide equals;
import 'package:test/test.dart';

String baseURl =
Expand Down
2 changes: 1 addition & 1 deletion dcli/test/src/functions/is_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Written by Brett Sutton <[email protected]>, Jan 2022
*/

import 'package:dcli/dcli.dart' ;
import 'package:dcli/dcli.dart';
import 'package:dcli_core/dcli_core.dart' as core;
import 'package:path/path.dart' hide equals;
import 'package:test/test.dart' hide isEmpty;
Expand Down
2 changes: 1 addition & 1 deletion dcli/test/src/shell/posix_shell_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void main() {
final shell = Shell.current;

expect(shell.isPrivilegedUser, isTrue);

// 'useradd -g $group $username'.run;

final sudoGroups = getGroups();
Expand Down
4 changes: 2 additions & 2 deletions template/project/cmd_args/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: A script generated by dcli.
environment:
sdk: '>=2.18.0 <3.0.0'
dependencies:
dcli: ^2.0.0-beta.12
dcli_core: ^2.0.0-beta.12
dcli: ^2.0.0-beta.13
dcli_core: ^2.0.0-beta.13
path: ^1.0.0
dev_dependencies:
lint_hard: ^2.0.0
4 changes: 2 additions & 2 deletions template/project/find/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: A script generated by dcli.
environment:
sdk: '>=2.18.0 <3.0.0'
dependencies:
dcli: ^2.0.0-beta.12
dcli_core: ^2.0.0-beta.12
dcli: ^2.0.0-beta.13
dcli_core: ^2.0.0-beta.13
path: ^1.0.0
dev_dependencies:
lint_hard: ^2.0.0
4 changes: 2 additions & 2 deletions template/project/full/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ environment:
sdk: '>=2.18.0 <3.0.0'
dependencies:
args: ^2.3.1
dcli: ^2.0.0-beta.12
dcli_core: ^2.0.0-beta.12
dcli: ^2.0.0-beta.13
dcli_core: ^2.0.0-beta.13
http: ^0.13.4
settings_yaml: ^5.0.0-beta.1
dev_dependencies:
Expand Down
4 changes: 2 additions & 2 deletions template/project/simple/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A simple command-line application created by dcli
environment:
sdk: '>=2.18.0 <3.0.0'
dependencies:
dcli: ^2.0.0-beta.12
dcli_core: ^2.0.0-beta.12
dcli: ^2.0.0-beta.13
dcli_core: ^2.0.0-beta.13
dev_dependencies:
lint_hard: ^2.0.0
4 changes: 2 additions & 2 deletions template/script/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: A simple command-line application created by dcli
environment:
sdk: '>=2.18.0 <3.0.0'
dependencies:
dcli: ^2.0.0-beta.12
dcli_core: ^2.0.0-beta.12
dcli: ^2.0.0-beta.13
dcli_core: ^2.0.0-beta.13
lint_hard: ^2.0.0

0 comments on commit 6d17a0e

Please sign in to comment.