Skip to content

Show dependencies feature #1012 - #1165

Merged
JohnMcPMS merged 40 commits into
microsoft:masterfrom
fzanollo:showDependenciesFeature
Aug 3, 2021
Merged

Show dependencies feature #1012#1165
JohnMcPMS merged 40 commits into
microsoft:masterfrom
fzanollo:showDependenciesFeature

Conversation

@fzanollo

@fzanollo fzanollo (fzanollo) commented Jun 14, 2021

Copy link
Copy Markdown
Contributor

Contains:

  • implementation of show dependencies feature for commands: install, show, upgrade, uninstall, validate, import.
  • everything under a new experimental feature
  • unit testcases for each of the commands
    Closes Show dependencies #1012
Microsoft Reviewers: Open in CodeFlow

@fzanollo
fzanollo (fzanollo) requested a review from a team as a code owner June 14, 2021 17:35
@ghost ghost added the Issue-Feature This is a feature request for the Windows Package Manager client. label Jun 14, 2021
Comment thread doc/Settings.md Outdated
Comment thread src/AppInstallerCLICore/Commands/UninstallCommand.cpp Outdated
Comment thread src/AppInstallerCLICore/Commands/UpgradeCommand.cpp Outdated
Comment thread src/AppInstallerCLICore/Commands/ValidateCommand.cpp Outdated
Comment thread src/AppInstallerCLICore/Commands/ValidateCommand.cpp Outdated
Comment thread src/AppInstallerCLICore/Workflows/UpdateFlow.cpp Outdated
Comment thread src/AppInstallerCLITests/AppInstallerCLITests.vcxproj Outdated
Comment thread src/AppInstallerCLITests/AppInstallerCLITests.vcxproj.filters Outdated
Comment thread src/AppInstallerCLITests/WorkFlow.cpp Outdated
Comment thread src/AppInstallerCommonCore/Public/winget/ManifestCommon.h Outdated
@ghost ghost added the Needs-Author-Feedback Issue needs attention from issue or PR author label Jun 15, 2021
@ghost ghost removed the Needs-Author-Feedback Issue needs attention from issue or PR author label Jun 15, 2021
@github-actions

Copy link
Copy Markdown

Misspellings found, please review:

  • deps
To accept these changes, run the following commands from this repository on this branch
pushd $(git rev-parse --show-toplevel)
perl -e '
my @expect_files=qw('".github/actions/spelling/expect.txt"');
@ARGV=@expect_files;
my @stale=qw('"bcp cdn compschema Debian google INET Langs oss REINSTALLMODE smartscreen sourc Standalone vamus Wunused "');
my $re=join "|", @stale;
my $suffix=".".time();
my $previous="";
sub maybe_unlink { unlink($_[0]) if $_[0]; }
while (<>) {
  if ($ARGV ne $old_argv) { maybe_unlink($previous); $previous="$ARGV$suffix"; rename($ARGV, $previous); open(ARGV_OUT, ">$ARGV"); select(ARGV_OUT); $old_argv = $ARGV; }
  next if /^(?:$re)(?:(?:\r|\n)*$| .*)/; print;
}; maybe_unlink($previous);'
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
use File::Path qw(make_path);
make_path ".github/actions/spelling";
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"debian deps inet langs "');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a) cmp lc($b)} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;'
popd

Comment thread src/AppInstallerCLICore/Commands/UpgradeCommand.cpp Outdated
Comment thread src/AppInstallerCLICore/Commands/UninstallCommand.cpp Outdated
Comment thread src/AppInstallerCLICore/Commands/ValidateCommand.cpp Outdated
Comment thread src/AppInstallerCLICore/Commands/ValidateCommand.cpp Outdated
Comment thread src/AppInstallerCLICore/Workflows/DependenciesFlow.cpp Outdated
Comment thread src/AppInstallerCommonCore/Public/winget/ManifestCommon.h Outdated
Comment thread src/AppInstallerCommonCore/Public/winget/ManifestCommon.h Outdated
Comment thread src/AppInstallerCommonCore/Public/winget/ManifestCommon.h Outdated
Comment thread src/AppInstallerCommonCore/Public/winget/ManifestInstaller.h
Comment thread src/AppInstallerRepositoryCore/Rest/Schema/1_0/Json/ManifestDeserializer.cpp Outdated
Comment thread src/AppInstallerCLICore/Workflows/InstallFlow.cpp Outdated
Comment thread src/AppInstallerCLICore/Workflows/UninstallFlow.cpp Outdated
Comment thread src/AppInstallerCLICore/Workflows/ValidateFlow.cpp Outdated
Comment thread src/AppInstallerCLIPackage/Shared/Strings/en-us/winget.resw Outdated
Comment thread src/AppInstallerCLIPackage/Shared/Strings/en-us/winget.resw Outdated
Comment thread src/AppInstallerCommonCore/Public/winget/ManifestCommon.h Outdated
Comment thread src/AppInstallerCommonCore/Public/winget/ManifestCommon.h Outdated
@ghost ghost added Needs-Author-Feedback Issue needs attention from issue or PR author and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Jun 22, 2021
fzanollo (fzanollo) and others added 4 commits June 23, 2021 13:04
Co-authored-by: JohnMcPMS <johnmcp@microsoft.com>
…encies is now a WorkflowTask receiving resource string id
…w, move dependency related function to DependenciesFlow
@github-actions

Copy link
Copy Markdown

Misspellings found, please review:

  • begining
To accept these changes, run the following commands from this repository on this branch
pushd $(git rev-parse --show-toplevel)
perl -e '
my @expect_files=qw('".github/actions/spelling/expect.txt"');
@ARGV=@expect_files;
my @stale=qw('"bcp cdn compschema Debian google INET Langs oss REINSTALLMODE smartscreen sourc Standalone vamus Wunused "');
my $re=join "|", @stale;
my $suffix=".".time();
my $previous="";
sub maybe_unlink { unlink($_[0]) if $_[0]; }
while (<>) {
  if ($ARGV ne $old_argv) { maybe_unlink($previous); $previous="$ARGV$suffix"; rename($ARGV, $previous); open(ARGV_OUT, ">$ARGV"); select(ARGV_OUT); $old_argv = $ARGV; }
  next if /^(?:$re)(?:(?:\r|\n)*$| .*)/; print;
}; maybe_unlink($previous);'
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
use File::Path qw(make_path);
make_path ".github/actions/spelling";
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"begining debian inet langs "');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a) cmp lc($b)} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;'
popd

@github-actions

Copy link
Copy Markdown

Misspellings found, please review:

  • begining
To accept these changes, run the following commands from this repository on this branch
pushd $(git rev-parse --show-toplevel)
perl -e '
my @expect_files=qw('".github/actions/spelling/expect.txt"');
@ARGV=@expect_files;
my @stale=qw('"bcp cdn compschema Debian google INET Langs oss REINSTALLMODE smartscreen sourc Standalone vamus Wunused "');
my $re=join "|", @stale;
my $suffix=".".time();
my $previous="";
sub maybe_unlink { unlink($_[0]) if $_[0]; }
while (<>) {
  if ($ARGV ne $old_argv) { maybe_unlink($previous); $previous="$ARGV$suffix"; rename($ARGV, $previous); open(ARGV_OUT, ">$ARGV"); select(ARGV_OUT); $old_argv = $ARGV; }
  next if /^(?:$re)(?:(?:\r|\n)*$| .*)/; print;
}; maybe_unlink($previous);'
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
use File::Path qw(make_path);
make_path ".github/actions/spelling";
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"begining debian inet langs "');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a) cmp lc($b)} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;'
popd

@github-actions

Copy link
Copy Markdown

Misspellings found, please review:

  • IISOn
  • Multideclaration
To accept these changes, run the following commands from this repository on this branch
pushd $(git rev-parse --show-toplevel)
perl -e '
my @expect_files=qw('".github/actions/spelling/expect.txt"');
@ARGV=@expect_files;
my @stale=qw('"bcp cdn compschema Debian google INET Langs oss REINSTALLMODE smartscreen sourc Standalone vamus Wunused "');
my $re=join "|", @stale;
my $suffix=".".time();
my $previous="";
sub maybe_unlink { unlink($_[0]) if $_[0]; }
while (<>) {
  if ($ARGV ne $old_argv) { maybe_unlink($previous); $previous="$ARGV$suffix"; rename($ARGV, $previous); open(ARGV_OUT, ">$ARGV"); select(ARGV_OUT); $old_argv = $ARGV; }
  next if /^(?:$re)(?:(?:\r|\n)*$| .*)/; print;
}; maybe_unlink($previous);'
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
use File::Path qw(make_path);
make_path ".github/actions/spelling";
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"debian IISOn inet langs Multideclaration "');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a) cmp lc($b)} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;'
popd

Comment thread src/AppInstallerCommonCore/Public/winget/ManifestCommon.h Outdated
Comment thread src/AppInstallerCommonCore/Public/winget/ManifestCommon.h
Comment thread src/AppInstallerCommonCore/Public/winget/ManifestCommon.h Outdated
@github-actions

Copy link
Copy Markdown

Misspellings found, please review:

  • standalone
To accept these changes, run the following commands from this repository on this branch
pushd $(git rev-parse --show-toplevel)
perl -e '
my @expect_files=qw('".github/actions/spelling/expect.txt"');
@ARGV=@expect_files;
my @stale=qw('"abifind CLSID combaseapi cppwinrtprocess Globals HRESULTs IApp idl IFind IGet iinstall MIDL Packageend pseudocode Xaml "');
my $re=join "|", @stale;
my $suffix=".".time();
my $previous="";
sub maybe_unlink { unlink($_[0]) if $_[0]; }
while (<>) {
  if ($ARGV ne $old_argv) { maybe_unlink($previous); $previous="$ARGV$suffix"; rename($ARGV, $previous); open(ARGV_OUT, ">$ARGV"); select(ARGV_OUT); $old_argv = $ARGV; }
  next if /^(?:$re)(?:(?:\r|\n)*$| .*)/; print;
}; maybe_unlink($previous);'
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
use File::Path qw(make_path);
make_path ".github/actions/spelling";
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"clsid globals hresults midl standalone "');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a) cmp lc($b)} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;'
popd

@github-actions

Copy link
Copy Markdown

Misspellings found, please review:

  • standalone
To accept these changes, run the following commands from this repository on this branch
pushd $(git rev-parse --show-toplevel)
perl -e '
my @expect_files=qw('".github/actions/spelling/expect.txt"');
@ARGV=@expect_files;
my @stale=qw('"abifind CLSID combaseapi cppwinrtprocess Globals HRESULTs IApp idl IFind IGet iinstall MIDL Packageend pseudocode Xaml "');
my $re=join "|", @stale;
my $suffix=".".time();
my $previous="";
sub maybe_unlink { unlink($_[0]) if $_[0]; }
while (<>) {
  if ($ARGV ne $old_argv) { maybe_unlink($previous); $previous="$ARGV$suffix"; rename($ARGV, $previous); open(ARGV_OUT, ">$ARGV"); select(ARGV_OUT); $old_argv = $ARGV; }
  next if /^(?:$re)(?:(?:\r|\n)*$| .*)/; print;
}; maybe_unlink($previous);'
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
use File::Path qw(make_path);
make_path ".github/actions/spelling";
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"clsid globals hresults midl standalone "');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a) cmp lc($b)} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;'
popd

@github-actions

Copy link
Copy Markdown

Misspellings found, please review:

  • standalone
To accept these changes, run the following commands from this repository on this branch
pushd $(git rev-parse --show-toplevel)
perl -e '
my @expect_files=qw('".github/actions/spelling/expect.txt"');
@ARGV=@expect_files;
my @stale=qw('"abifind CLSID combaseapi cppwinrtprocess Globals HRESULTs IApp idl IFind IGet iinstall MIDL Packageend pseudocode Xaml "');
my $re=join "|", @stale;
my $suffix=".".time();
my $previous="";
sub maybe_unlink { unlink($_[0]) if $_[0]; }
while (<>) {
  if ($ARGV ne $old_argv) { maybe_unlink($previous); $previous="$ARGV$suffix"; rename($ARGV, $previous); open(ARGV_OUT, ">$ARGV"); select(ARGV_OUT); $old_argv = $ARGV; }
  next if /^(?:$re)(?:(?:\r|\n)*$| .*)/; print;
}; maybe_unlink($previous);'
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
use File::Path qw(make_path);
make_path ".github/actions/spelling";
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"clsid globals hresults midl standalone "');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a) cmp lc($b)} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;'
popd

Comment thread src/AppInstallerCommonCore/Public/winget/ManifestCommon.h Outdated
@JohnMcPMS
JohnMcPMS merged commit fe8ac77 into microsoft:master Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue-Feature This is a feature request for the Windows Package Manager client.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show dependencies

2 participants