这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@return42
Copy link
Member

What does this PR do?

This PR cleans up the developer environment and enables the use of tools from the Go ecosystem.

The versions of the Node.js and Go tools are pinned and updated by the Dependantbot.

The old LXC scripts have been removed (they have been unusable for some time).

The shell scripts are formatted with shfmt.

... for further details, please read the commit messages.

  • [chore] overdue maintenance of shell scripts
  • [mod] add Golang ecosystem to the SearXNG toolchain
  • [mod] create a Go project with the developer tools from Go
  • [mod] dependabot: add searxng.org/devtools from Go and Node.js
  • [enh] CI - add shell script formatter
  • [fix] don't install pyright twice and do some clean up
  • [fix] apply shell formating / shfmt (make format.shell)
  • [upd] update to gecko driver v36

Related issues

@return42 return42 changed the title Mod shfmt Rework of the developer environment Jul 16, 2025
@inetol inetol self-requested a review July 16, 2025 16:40
Copy link
Member

@inetol inetol left a comment

Choose a reason for hiding this comment

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

Just a small detail, other than that the changes look good.

@inetol inetol linked an issue Jul 19, 2025 that may be closed by this pull request
@return42 return42 force-pushed the mod-shfmt branch 2 times, most recently from cbaef5a to b26c7d9 Compare July 25, 2025 11:42
Copy link
Member

@inetol inetol left a comment

Choose a reason for hiding this comment

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

LGTM

@inetol inetol mentioned this pull request Jul 28, 2025
return42 added 8 commits July 28, 2025 12:44
Removes obsolete scripts and fix various leftovers.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
The `go.mod` was created by::

   $ ./manage dev.env
   (dev.env)$ go mod init searxng.org/devtools
   (dev.env)$ go get -tool mvdan.cc/sh/v3/cmd/shfmt@v3.12.0

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Implement rules and functions to format shell scripts:

    $ make format.shell

or alternatively to format all source code:

    $ make format

The formatter `shfmt` reads the rules from the editorconfig[1]

  If any EditorConfig files are found, they will be used to apply formatting
  options.  If any parser or printer flags are given to the tool, no
  EditorConfig files will be used.

[1] https://github.com/patrickvane/shfmt?tab=readme-ov-file#description

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Pyright has been installed twice so far, once via `package.json` and once in the
test script via `npx --no-install`. Separating the type checks in the CI and on
the developer desktop is also not necessary.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
@return42
Copy link
Member Author

FYI last force push was just to solve a conflict with master branch / I'm going to merge this PR now ..

@return42 return42 merged commit 8084a86 into searxng:master Jul 28, 2025
7 checks passed
@return42 return42 deleted the mod-shfmt branch July 28, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add shell (bash) formatter to SearXNG's tool chain

3 participants