Skip to content
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

(maint) update: don't mention deleted Gemfile.lock and .bundle/config #436

Merged
merged 1 commit into from
Feb 23, 2018

Conversation

DavidS
Copy link
Contributor

@DavidS DavidS commented Feb 23, 2018

Previously, when running pdk update, note how in the second case there were "2 files removed":

david@davids:~/git/tmp/bar$ rm -f .travis.yml; ~/git/pdk/bin/pdk update --force
pdk (INFO): Updating david-bar using the template at file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git, from 1.4.1 to master@52adbbb

------------Files to be added-----------
.travis.yml

----------------------------------------

------------Update completed------------

1 files added.

david@davids:~/git/tmp/bar$ rm -f Gemfile ; ~/git/pdk/bin/pdk update --force
pdk (INFO): Updating david-bar using the template at file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git, from 1.4.1 to master@52adbbb

------------Files to be added-----------
Gemfile

----------------------------------------
[✔] Resolving Gemfile dependencies.

------------Update completed------------

1 files added, 2 files removed.

david@davids:~/git/tmp/bar$

Since the files are not mentioned in the report, this could be very
confusing to users. With this patch, the files are still removed, but
the summary doesn't show them any more:

david@davids:~/git/tmp/bar$ rm -f Gemfile ; ~/git/pdk/bin/pdk update --force
pdk (INFO): Updating david-bar using the template at file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git, from 1.4.1 to master@52adbbb

------------Files to be added-----------
Gemfile

----------------------------------------
[✔] Resolving Gemfile dependencies.

------------Update completed------------

1 files added.

david@davids:~/git/tmp/bar$

Previously, when running pdk update, note how in the second case there were "2 files removed":
```
david@davids:~/git/tmp/bar$ rm -f .travis.yml; ~/git/pdk/bin/pdk update --force
pdk (INFO): Updating david-bar using the template at file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git, from 1.4.1 to master@52adbbb

------------Files to be added-----------
.travis.yml

----------------------------------------

------------Update completed------------

1 files added.

david@davids:~/git/tmp/bar$ rm -f Gemfile ; ~/git/pdk/bin/pdk update --force
pdk (INFO): Updating david-bar using the template at file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git, from 1.4.1 to master@52adbbb

------------Files to be added-----------
Gemfile

----------------------------------------
[✔] Resolving Gemfile dependencies.

------------Update completed------------

1 files added, 2 files removed.

david@davids:~/git/tmp/bar$
```

Since the files are not mentioned in the report, this could be very
confusing to users. With this patch, the files are still removed, but
the summary doesn't show them any more:

```
david@davids:~/git/tmp/bar$ rm -f Gemfile ; ~/git/pdk/bin/pdk update --force
pdk (INFO): Updating david-bar using the template at file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git, from 1.4.1 to master@52adbbb

------------Files to be added-----------
Gemfile

----------------------------------------
[✔] Resolving Gemfile dependencies.

------------Update completed------------

1 files added.

david@davids:~/git/tmp/bar$
```
@DavidS DavidS requested review from bmjen and rickmonro February 23, 2018 12:26
@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.235% when pulling bf83b6f on DavidS:fix-convert-summary into 82b9374 on puppetlabs:master.

@bmjen bmjen merged commit 6c1f95b into puppetlabs:master Feb 23, 2018
@DavidS DavidS deleted the fix-convert-summary branch February 23, 2018 16:37
@chelnak chelnak added the maintenance Internal maintenance work that shouldn't appear in the changelog label Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Internal maintenance work that shouldn't appear in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants