Skip to content

Do not update secrets.yml.enc when secretes do not change - #29705

Merged
matthewd merged 1 commit into
rails:masterfrom
y-yagi:do_not_update_secrets_yml_enc
Jul 8, 2017
Merged

matthewd merged 1 commit into
rails:masterfrom
y-yagi:do_not_update_secrets_yml_enc

Conversation

@y-yagi

@y-yagi y-yagi commented Jul 7, 2017

Copy link
Copy Markdown
Member

Currently, if open a file with secrets:edit command, secrets.yml.enc will be changed even if its contents do not change.
Therefore, even if only want to check secrets, the difference will come out. This is a little inconvenient.

As a fix to the above problem, when content does not change, secrets.yml.ecn is fixed so that it is not changed.

@rails-bot

Copy link
Copy Markdown

r? @pixeltrix

(@rails-bot has picked a reviewer for you, use r? to override)

Currently, if open a file with `secrets:edit` command, `secrets.yml.enc`
will be changed even if its contents do not change.

Therefore, even if only want to check secrets, the difference will come
out. This is a little inconvenient.

As a fix to the above problem, when content does not change,
`secrets.yml.ecn` is fixed so that it is not changed.
@y-yagi
y-yagi force-pushed the do_not_update_secrets_yml_enc branch from 8411dc8 to 32327eb Compare July 7, 2017 03:17
@matthewd
matthewd merged commit 7147e52 into rails:master Jul 8, 2017
@matthewd

matthewd commented Jul 8, 2017

Copy link
Copy Markdown
Member

❤️

@y-yagi
y-yagi deleted the do_not_update_secrets_yml_enc branch July 8, 2017 21:38
kaspth pushed a commit that referenced this pull request Jul 9, 2017
Do not update `secrets.yml.enc` when secretes do not change
@kaspth

kaspth commented Jul 9, 2017

Copy link
Copy Markdown
Contributor

Since this is a fix I've chosen to backport to 5-1-stable at de0d960

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants