GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — Improve go:lint by eunomie · Pull Request #12998 · dagger/dagger Conversation
|
|
@tiborvass I've changed the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
* fix: go lint-module --module
Previously the argument of `LintModule` was `mod`. But when trying to
set it, for instance:
dagger call go lint-module --mod=my-dir
This conflicts with the `--mod` arg from `dagger` command with the
following error:
! flag already exists: mod
By renaming it to `module` it just works.
dagger call go lint-module --module=my-dir
Signed-off-by: Yves Brissaud <[email protected]>
* feat: allow to limit number of parallel go linters
golangci-lint can take a lot of local resources.
This adds a limit argument, default to 3 like the previous version, that
user can set to limit the parallelism.
On some machines to run with a limit of 1 can make it works where 3 is
using all the resources.
Of course this depends on the machine on which this is running.
Keeping the default to 3 and letting configure the limit should be
flexible enough.
This argument can be configured in the toolchain customization or on the
command line for a direct call:
dagger call go lint --limit=1
Signed-off-by: Yves Brissaud <[email protected]>
* feat: allow to limit the number of go mod tidy in parallel
Same as for `lint`, but on `tidy` this time.
Signed-off-by: Yves Brissaud <[email protected]>
* feat: allow to limit parallelism for go tidy
And use builtin merge changeset feature
Signed-off-by: Yves Brissaud <[email protected]>
* fix: go tidy-module --module
Signed-off-by: Yves Brissaud <[email protected]>
* ref: extract the limit arg to be set at the constructor level
So we can easily define a .env with a single limit that will apply
to all of them
Signed-off-by: Yves Brissaud <[email protected]>
---------
Signed-off-by: Yves Brissaud <[email protected]>
(cherry picked from commit 1628026)
Signed-off-by: Tibor Vass <[email protected]>
* fix: go lint-module --module
Previously the argument of `LintModule` was `mod`. But when trying to
set it, for instance:
dagger call go lint-module --mod=my-dir
This conflicts with the `--mod` arg from `dagger` command with the
following error:
! flag already exists: mod
By renaming it to `module` it just works.
dagger call go lint-module --module=my-dir
Signed-off-by: Yves Brissaud <[email protected]>
* feat: allow to limit number of parallel go linters
golangci-lint can take a lot of local resources.
This adds a limit argument, default to 3 like the previous version, that
user can set to limit the parallelism.
On some machines to run with a limit of 1 can make it works where 3 is
using all the resources.
Of course this depends on the machine on which this is running.
Keeping the default to 3 and letting configure the limit should be
flexible enough.
This argument can be configured in the toolchain customization or on the
command line for a direct call:
dagger call go lint --limit=1
Signed-off-by: Yves Brissaud <[email protected]>
* feat: allow to limit the number of go mod tidy in parallel
Same as for `lint`, but on `tidy` this time.
Signed-off-by: Yves Brissaud <[email protected]>
* feat: allow to limit parallelism for go tidy
And use builtin merge changeset feature
Signed-off-by: Yves Brissaud <[email protected]>
* fix: go tidy-module --module
Signed-off-by: Yves Brissaud <[email protected]>
* ref: extract the limit arg to be set at the constructor level
So we can easily define a .env with a single limit that will apply
to all of them
Signed-off-by: Yves Brissaud <[email protected]>
---------
Signed-off-by: Yves Brissaud <[email protected]>
(cherry picked from commit 1628026)
Signed-off-by: Tibor Vass <[email protected]>
* fix: go lint-module --module
Previously the argument of `LintModule` was `mod`. But when trying to
set it, for instance:
dagger call go lint-module --mod=my-dir
This conflicts with the `--mod` arg from `dagger` command with the
following error:
! flag already exists: mod
By renaming it to `module` it just works.
dagger call go lint-module --module=my-dir
Signed-off-by: Yves Brissaud <[email protected]>
* feat: allow to limit number of parallel go linters
golangci-lint can take a lot of local resources.
This adds a limit argument, default to 3 like the previous version, that
user can set to limit the parallelism.
On some machines to run with a limit of 1 can make it works where 3 is
using all the resources.
Of course this depends on the machine on which this is running.
Keeping the default to 3 and letting configure the limit should be
flexible enough.
This argument can be configured in the toolchain customization or on the
command line for a direct call:
dagger call go lint --limit=1
Signed-off-by: Yves Brissaud <[email protected]>
* feat: allow to limit the number of go mod tidy in parallel
Same as for `lint`, but on `tidy` this time.
Signed-off-by: Yves Brissaud <[email protected]>
* feat: allow to limit parallelism for go tidy
And use builtin merge changeset feature
Signed-off-by: Yves Brissaud <[email protected]>
* fix: go tidy-module --module
Signed-off-by: Yves Brissaud <[email protected]>
* ref: extract the limit arg to be set at the constructor level
So we can easily define a .env with a single limit that will apply
to all of them
Signed-off-by: Yves Brissaud <[email protected]>
---------
Signed-off-by: Yves Brissaud <[email protected]>
(cherry picked from commit 1628026)
Signed-off-by: Tibor Vass <[email protected]>
* fix: go lint-module --module
Previously the argument of `LintModule` was `mod`. But when trying to
set it, for instance:
dagger call go lint-module --mod=my-dir
This conflicts with the `--mod` arg from `dagger` command with the
following error:
! flag already exists: mod
By renaming it to `module` it just works.
dagger call go lint-module --module=my-dir
Signed-off-by: Yves Brissaud <[email protected]>
* feat: allow to limit number of parallel go linters
golangci-lint can take a lot of local resources.
This adds a limit argument, default to 3 like the previous version, that
user can set to limit the parallelism.
On some machines to run with a limit of 1 can make it works where 3 is
using all the resources.
Of course this depends on the machine on which this is running.
Keeping the default to 3 and letting configure the limit should be
flexible enough.
This argument can be configured in the toolchain customization or on the
command line for a direct call:
dagger call go lint --limit=1
Signed-off-by: Yves Brissaud <[email protected]>
* feat: allow to limit the number of go mod tidy in parallel
Same as for `lint`, but on `tidy` this time.
Signed-off-by: Yves Brissaud <[email protected]>
* feat: allow to limit parallelism for go tidy
And use builtin merge changeset feature
Signed-off-by: Yves Brissaud <[email protected]>
* fix: go tidy-module --module
Signed-off-by: Yves Brissaud <[email protected]>
* ref: extract the limit arg to be set at the constructor level
So we can easily define a .env with a single limit that will apply
to all of them
Signed-off-by: Yves Brissaud <[email protected]>
---------
Signed-off-by: Yves Brissaud <[email protected]>
(cherry picked from commit 1628026)
Signed-off-by: Tibor Vass <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.