Skip to content

Commit 7eb2b29

Browse files
authored
Move sourcetool to top level dir (#249)
* Reorg docs into own dir Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]> * Remove go workspace Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]> * Move sourcetool source to top Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]> * Update import paths to top-level location Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]> * Update paths in protos, regenerate Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]> * Update paths in Makefile Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]> * Update paths in CI and configuration files Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]> * Last docs path updates Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]> --------- Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
1 parent 3506901 commit 7eb2b29

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+192
-810
lines changed

.github/dependabot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
version: 2
55
updates:
66
- package-ecosystem: gomod
7-
directory: "sourcetool"
7+
directory: "/"
88
schedule:
99
interval: "daily"
1010
open-pull-requests-limit: 10

.github/workflows/go-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Run Go tests
3030
run: |
31-
go test ./sourcetool/...
31+
go test ./...
3232
3333
- name: Check generated fakes
3434
run: |

.github/workflows/golangci-lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
cache: false
2828

2929
- run: |
30-
cd sourcetool && go get -d ./...
30+
go get -d ./...
3131
3232
- name: Run golangci-lint
3333
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
3434
with:
3535
version: v2.1
36-
working-directory: sourcetool
36+

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3131
with:
32-
go-version-file: sourcetool/go.mod
32+
go-version-file: go.mod
3333
cache: false
3434

3535
- name: Install tejolote

.goreleaser.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88

99
before:
1010
hooks:
11-
- /bin/bash -c 'cd sourcetool && go mod tidy'
11+
- /bin/bash -c 'go mod tidy'
1212
- /bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi'
1313

1414
gomod:
@@ -18,7 +18,7 @@ builds:
1818
- id: release
1919
no_unique_dist_dir: true
2020
binary: sourcetool-{{ .Tag }}-{{ .Os }}-{{ .Arch }}
21-
main: ./sourcetool/
21+
main: ./
2222
goos:
2323
- darwin
2424
- linux

GETTING_STARTED.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ First, enable continuity controls within the target GitHub repo.
1111
2. Click the 'Settings' option
1212
3. Click 'Rules -> Rulesets'
1313
4. Click 'New Ruleset -> Import a ruleset'
14-
5. Upload [rulesets/source_level_3_basic.json](rulesets/source_level_3_basic.json)
14+
5. Upload [docs/rulesets/source_level_3_basic.json](docs/rulesets/source_level_3_basic.json)
1515
6. Click 'Create'
1616

1717
## Enable Source PoC workflow

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ help:
1111

1212
.PHONY: fakes
1313
fakes: ## Rebuild the implementation fakes
14-
go generate ./sourcetool/...
14+
go generate ./...
1515

1616
.PHONY: proto
1717
proto: ## Rebuild the policies and provenance predicate from protocol buffer definitions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Status: in development
88

99
## Design
1010

11-
[REQUIREMENTS_MAPPING.md](REQUIREMENTS_MAPPING.md) defines the rationale for how
11+
[REQUIREMENTS_MAPPING.md](docs/REQUIREMENTS_MAPPING.md) defines the rationale for how
1212
this tool meets the SLSA Source Requirements.
1313

14-
[DESIGN.md](DESIGN.md) explains more specifically how the system works.
14+
[DESIGN.md](docs/DESIGN.md) explains more specifically how the system works.
1515

1616
## Components
1717

buf.gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ managed:
77
enabled: true
88
plugins:
99
- protoc_builtin: go
10-
out: ./sourcetool/pkg
10+
out: ./pkg
1111
opt:
1212
- paths=import
13-
- module=github.com/slsa-framework/slsa-source-poc/sourcetool/pkg
13+
- module=github.com/slsa-framework/slsa-source-poc/pkg
File renamed without changes.

0 commit comments

Comments
 (0)