Skip to content

Commit c65fc7d

Browse files
author
saiganakato
committed
fix: tracked-ignored fixture as real files, not gitlink (v1.1.12)
1 parent 9dbc08b commit c65fc7d

10 files changed

Lines changed: 43 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this regulation shelf are documented here.
44

55
The detailed shelf changelog lives in `regulation/shelf/SHELF_CHANGELOG.md`.
66

7+
## [1.1.12] - 2026-06-17
8+
9+
### Fixed
10+
11+
- tracked-ignored-repo fixture stored as normal files (not gitlink); secret file generated at test runtime
12+
713
## [1.1.11] - 2026-06-17
814

915
### Fixed

regulation/shelf/SHELF_CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to the generic regulation shelf.
44

5+
## 1.1.12 — 2026-06-17
6+
7+
### Fixed
8+
9+
- tracked-ignored fixture gitlink removed; runtime-generated `local-only.secret`
10+
511
## 1.1.11 — 2026-06-17
612

713
### Fixed

regulation/shelf/SHELF_VERSION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Status: Active
55
## Current
66

77
```text
8-
1.1.11
8+
1.1.12
99
```
1010

1111
## Meaning
Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
local-only.secret
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) fixture
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Tracked Ignored Fixture
2+
3+
Regression fixture: `local-only.secret` is created at test time, force-added, and listed in `.gitignore`.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Security Policy
2+
3+
Report issues to the maintainer.

scripts/tests/run-regulation-tests.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Assert-ExitCode "check-gitignore-consistency on fixture" 0 {
6161
$trackedIgnoredFixture = Join-Path $Shelf "scripts\tests\fixtures\tracked-ignored-repo"
6262
if (-not (Test-Path (Join-Path $trackedIgnoredFixture ".git"))) {
6363
Push-Location $trackedIgnoredFixture
64+
Set-Content -Path "local-only.secret" -Value "fixture-secret=tracked-but-ignored" -NoNewline
6465
git init | Out-Null
6566
git add README.md LICENSE SECURITY.md .gitignore
6667
git add -f local-only.secret

scripts/tests/run-regulation-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ run_exit "check-gitignore-consistency on shelf" 0 bash "$SHELF/scripts/check-git
4242
run_exit "check-gitignore-consistency on fixture" 0 bash "$SHELF/scripts/check-gitignore-consistency.sh" "$FIXTURE"
4343
TRACKED_IGNORED="$SHELF/scripts/tests/fixtures/tracked-ignored-repo"
4444
if [[ ! -d "$TRACKED_IGNORED/.git" ]]; then
45+
printf '%s' 'fixture-secret=tracked-but-ignored' >"$TRACKED_IGNORED/local-only.secret"
4546
git -C "$TRACKED_IGNORED" init
4647
git -C "$TRACKED_IGNORED" add README.md LICENSE SECURITY.md .gitignore
4748
git -C "$TRACKED_IGNORED" add -f local-only.secret

0 commit comments

Comments
 (0)