Skip to content

Commit

Permalink
Rev configs to latest plugins (#73)
Browse files Browse the repository at this point in the history
1. Pin to latest plugins release 1.4.3
2. Toolbox is now defined in plugins repo / so remove local definition
of the tool from configs.
  • Loading branch information
EliSchleifer authored Feb 16, 2024
1 parent ce5de7a commit 5ea7124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: 0.1
cli:
version: 1.19.0
version: 1.20.0
plugins:
sources:
- id: trunk
uri: https://github.com/trunk-io/plugins
ref: v1.4.2
ref: v1.4.3

- id: configs
local: .
Expand Down
29 changes: 1 addition & 28 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,6 @@ runtimes:
- [email protected]

lint:
downloads:
- name: trunk-toolbox
# Our own internal alpha linter
downloads:
- os:
linux: unknown-linux-gnu
macos: apple-darwin
cpu:
x86_64: x86_64
arm_64: aarch64
url: https://github.com/trunk-io/toolbox/releases/download/${version}/trunk-toolbox-${version}-${cpu}-${os}.tar.gz

definitions:
- name: trunk-toolbox
download: trunk-toolbox
files: [ALL]
commands:
- output: sarif
run: trunk-toolbox --upstream ${upstream-ref}
success_codes: [0]
read_output_from: stdout
disable_upstream: true
target: .
environment:
- name: PATH
list: ["${linter}"]

# By sourcing this plugin, repos will enable these linters
enabled:
- [email protected]
Expand Down Expand Up @@ -83,7 +56,7 @@ lint:
- [email protected]
- [email protected]
- [email protected]
- trunk-toolbox@0.0.1
- trunk-toolbox@0.2.0
- [email protected]

# Sourcing repos will have these configs available to applicable linters
Expand Down

0 comments on commit 5ea7124

Please sign in to comment.