Skip to content

fix when no from option is given #66

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

Closed
wants to merge 2 commits into from

Conversation

bendavies
Copy link
Contributor

hasOption => Returns true if an InputOption object exists by name.

@bendavies bendavies force-pushed the fix-from-option branch 2 times, most recently from 4fd561b to 505d78a Compare May 26, 2018 21:16
@@ -148,7 +148,7 @@ public function execute(InputInterface $input, OutputInterface $output) : int
// @todo fix flaky assumption about the path of the source repo...
$sourceRepo = CheckedOutRepository::fromPath(getcwd());

$fromRevision = $input->hasOption('from')
$fromRevision = $input->getOption('from') !== null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This kind of change requires a test addition

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep sorry, didn't see the command was tested. Will add.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test already exists, updated it.

@Ocramius
Copy link
Member

@bendavies I think #73 fixed this already (by using the correct API in symfony/console, which has broken hasOption()): closing as duplicate here, sorry :-\

@Ocramius Ocramius closed this May 27, 2018
@Ocramius Ocramius added this to the 1.0.2 milestone May 27, 2018
@Ocramius Ocramius self-assigned this May 27, 2018
@Ocramius Ocramius added the bug label May 27, 2018
@bendavies
Copy link
Contributor Author

Bah 😂

Ocramius added a commit that referenced this pull request May 28, 2018
…OR* is picked

Previously, only the *MINOR* version was being compared, leading to previous major
versions being considered in the lookup for the lowest available stable release.
Ocramius added a commit that referenced this pull request May 28, 2018
…itories

The reasoning behind this is that `symfony/console` has a very squishy API, and
that can lead to a lot of headaches in upgrades or implicit API changes.

Having an E2E test will ensure that the implementation details of `symfony/console`
are also considered, since the interfaces really just lie.
Ocramius added a commit that referenced this pull request May 28, 2018
Ocramius added a commit that referenced this pull request May 28, 2018
Ocramius added a commit that referenced this pull request May 28, 2018
… comparisons on no valid detected versions
Ocramius added a commit that referenced this pull request May 28, 2018
…d in the selected stable minor releases
Ocramius added a commit that referenced this pull request May 28, 2018
Ocramius added a commit that referenced this pull request Jun 4, 2018
Ocramius added a commit that referenced this pull request Jun 4, 2018
Ocramius added a commit that referenced this pull request Jun 4, 2018
Ocramius added a commit that referenced this pull request Jun 4, 2018
…options

#66 #72 #73 fixed missing `--from` handling, minor version detection and scenario with no detected versions at all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants