Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

FailOnGitError added #1104

Closed
wants to merge 27 commits into from

Conversation

MartinDemberger
Copy link
Contributor

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

A new option is added. When the option FailOnGitError is set the run failes when the call to get the available versions failes.

This is only the first part of a fix for #930

⤵️ What is the current behavior?

On most of git calls the error is ignored and NuKeeper notifies success.

🆕 What is the new behavior (if this is a feature change)?

A new option --failongiterror is introduced and when this option is set an error in a git call results in an error of NuKeeper.

In the current process the option is only used when searching for the available package versions.

💥 Does this PR introduce a breaking change?

No, the default behaviour is unchanged.

🐛 Recommendations for testing

📝 Links to relevant issues/docs

🤔 Checklist before submitting

  • All projects build
  • Relevant documentation was updated

@MartinDemberger MartinDemberger marked this pull request as ready for review April 14, 2021 06:07
@stale
Copy link

stale bot commented Jul 13, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jul 13, 2021
@stale stale bot closed this Aug 3, 2021
…otNet#1113)

* Add nuget restore CLI PackagesDirectory for package.config

* Add required option when restoring via package.config
* Add unit tests to ensure we include the CLI option

* Fix unit tests to allow for multiple operating systems

* Ensure that non windows OS's execute unit tests.

* Fix repository filter unit tests

* Remove tokens from source code (security)
* Adjust OctokitClient to enable anonymous authentication if no token is supplied.

* Add xml comments to the AuthSettings model

* Help Nukeeper engineering's identify potentially duplicated code.
* Assist with security token refactoring.

* Fix the Nuget Restore tests

* Ensure that unit tests have mono.CanRun set to true.
@msallin msallin reopened this Sep 20, 2021
@stale stale bot removed the wontfix label Sep 20, 2021
@msallin
Copy link
Member

msallin commented Sep 20, 2021

@MartinDemberger can you please rebase the branch on the latest master? Ty!

msallin and others added 15 commits September 20, 2021 18:22
* 📦 Automatic update of NuGet.CommandLine to 5.11.0

* Bump packaging script to match nuget.commandline version
@MartinDemberger
Copy link
Contributor Author

@MartinDemberger can you please rebase the branch on the latest master? Ty!

@msallin @i did the rebase but am unsure if it's done correct. There are changes in the changeset which I don't know.

You can give me a short hint if I have done an error. Then I will redo the changes on a clean branch.

@msallin
Copy link
Member

msallin commented Sep 21, 2021

Doesn't look correct to me. I looked at your fork, to see if I can advise. The problem is that you did some merges and additionally, the commit on which this branch is based, is behind the master.

If you don't mind, I suggest that you reapply the changes on a clean branch.
The simplest thing to do is probably:

  1. Ensure that the master in your fork is up to date
  2. Create a new branch on master
  3. Cherrypick your commit
  4. Create a new PR

@MartinDemberger
Copy link
Contributor Author

I created #1140 with the cleaned changes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants