Skip to content

Conversation

@eklitzke
Copy link
Contributor

Without this change, after building bitcoin master and testing it, I see the following untracked files:

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)

	qa/
	src/test/buildenv.py
	src/wallet.backup

I've tried to keep the .gitignore lines in the appropriate sections of the file.

@practicalswift
Copy link
Contributor

Concept ACK

coverage_percent.txt

#build tests
qa/
Copy link
Contributor

Choose a reason for hiding this comment

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

qa/ should no longer be created in current master. If this is still the case, we should rather find the source why this was created then just ignoring it.

Copy link
Member

Choose a reason for hiding this comment

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

I haven't seen any instances of it being created in new trees, so most probably if you have this, it's a remainder from an old build.

.libs
.*.swp
*.*~*
*.backup
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this would not hurt, though I think we should cleanup the backup file (unlink them) in wallet_test.cpp.

Copy link
Member

Choose a reason for hiding this comment

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

Not only that, but we shouldn't be creating a wallet.backup file in the src directory at all. It should go in the temporary directory created for the other test files.

Sounds like a really bad thing now, someone could confuse it for a real wallet backup, for one.

Thanks for noticing @eklitzke.

Copy link
Member

Choose a reason for hiding this comment

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

This line can go after #10927

@promag
Copy link
Contributor

promag commented Jul 19, 2017

Concept ACK.

laanwj added a commit to laanwj/bitcoin that referenced this pull request Jul 25, 2017
This assures that we don't overwrite a random file called
`wallet.backup` that happens to be in the current directory. It also
assures that the temporary file will be cleaned up.

Noticed by Evan Klitzke, came up in discussion here:
bitcoin#10880 (comment)
laanwj added a commit that referenced this pull request Jul 25, 2017
88af227 test: Make sure wallet.backup is created in temp path (Wladimir J. van der Laan)

Pull request description:

  This assures that we don't overwrite a random file called `wallet.backup` that happens to be in the current directory. It also assures that the temporary file will be cleaned up.

  Noticed by Evan Klitzke, came up in discussion here: #10880 (comment)

Tree-SHA512: 2d2c23c2deba26a1130a29279b3d8565b277eb90a98a6a6d7dd4948f5cbbd5ec5453b3082e3e4e21e0e2423e642bbd2f4433e4c21032d3c8cff27ee35e87e7e7
@maflcko
Copy link
Member

maflcko commented Jul 27, 2017 via email

@eklitzke
Copy link
Contributor Author

eklitzke commented Aug 9, 2017

It looks like I get a clean environment when building on master, including when running the test suite. Previously I had built Bitcoin from a release tag. For this reason, I'm closing the PR.

@eklitzke eklitzke closed this Aug 9, 2017
@eklitzke eklitzke deleted the gitignore branch August 9, 2017 02:49
mempko pushed a commit to meritlabs/merit that referenced this pull request Sep 28, 2017
This assures that we don't overwrite a random file called
`wallet.backup` that happens to be in the current directory. It also
assures that the temporary file will be cleaned up.

Noticed by Evan Klitzke, came up in discussion here:
bitcoin/bitcoin#10880 (comment)
mempko pushed a commit to meritlabs/merit that referenced this pull request Sep 28, 2017
88af227 test: Make sure wallet.backup is created in temp path (Wladimir J. van der Laan)

Pull request description:

  This assures that we don't overwrite a random file called `wallet.backup` that happens to be in the current directory. It also assures that the temporary file will be cleaned up.

  Noticed by Evan Klitzke, came up in discussion here: bitcoin/bitcoin#10880 (comment)

Tree-SHA512: 2d2c23c2deba26a1130a29279b3d8565b277eb90a98a6a6d7dd4948f5cbbd5ec5453b3082e3e4e21e0e2423e642bbd2f4433e4c21032d3c8cff27ee35e87e7e7
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Aug 2, 2019
… path

88af227 test: Make sure wallet.backup is created in temp path (Wladimir J. van der Laan)

Pull request description:

  This assures that we don't overwrite a random file called `wallet.backup` that happens to be in the current directory. It also assures that the temporary file will be cleaned up.

  Noticed by Evan Klitzke, came up in discussion here: bitcoin#10880 (comment)

Tree-SHA512: 2d2c23c2deba26a1130a29279b3d8565b277eb90a98a6a6d7dd4948f5cbbd5ec5453b3082e3e4e21e0e2423e642bbd2f4433e4c21032d3c8cff27ee35e87e7e7
charlesrocket pushed a commit to AXErunners/axe that referenced this pull request Nov 29, 2019
88af227 test: Make sure wallet.backup is created in temp path (Wladimir J. van der Laan)

Pull request description:

  This assures that we don't overwrite a random file called `wallet.backup` that happens to be in the current directory. It also assures that the temporary file will be cleaned up.

  Noticed by Evan Klitzke, came up in discussion here: bitcoin/bitcoin#10880 (comment)

Tree-SHA512: 2d2c23c2deba26a1130a29279b3d8565b277eb90a98a6a6d7dd4948f5cbbd5ec5453b3082e3e4e21e0e2423e642bbd2f4433e4c21032d3c8cff27ee35e87e7e7
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants