Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File "/home/max/.local/lib/python3.10/site-packages/pre_commit/languages/golang.py", line 107, in _install_go raise ValueError( ValueError: Could not find a version matching your system requirements (os=linux; arch=amd64) #962

Closed
BaseMax opened this issue Jan 13, 2025 · 4 comments

Comments

@BaseMax
Copy link
Member

BaseMax commented Jan 13, 2025

thanks now: max@Workstation:/mnt/c/Users/MAX/salam$ pre-commit run --all-files
[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/jendrikseipp/vulture.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/psf/black-pre-commit-mirror.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/PyCQA/bandit.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/gitleaks/gitleaks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: ValueError: Could not find a version matching your system requirements (os=linux; arch=amd64)
Check the log at /home/max/.cache/pre-commit/pre-commit.log
max@Workstation:/mnt/c/Users/MAX/salam$ cat /home/max/.cache/pre-commit/pre-commit.log
### version information

pre-commit version: 4.0.1
git --version: git version 2.34.1
sys.version:
    3.10.12 (main, Nov  6 2024, 20:22:13) [GCC 11.4.0]
sys.executable: /usr/bin/python3
os.name: posix
sys.platform: linux


### error information

An unexpected error has occurred: ValueError: Could not find a version matching your system requirements (os=linux; arch=amd64)


Traceback (most recent call last):
  File "/home/max/.local/lib/python3.10/site-packages/pre_commit/languages/golang.py", line 104, in _install_go
    resp = urllib.request.urlopen(_get_url(version))
  File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/max/.local/lib/python3.10/site-packages/pre_commit/error_handler.py", line 73, in error_handler
    yield
  File "/home/max/.local/lib/python3.10/site-packages/pre_commit/main.py", line 417, in main
    return run(args.config, store, args)
  File "/home/max/.local/lib/python3.10/site-packages/pre_commit/commands/run.py", line 442, in run
    install_hook_envs(to_install, store)
  File "/home/max/.local/lib/python3.10/site-packages/pre_commit/repository.py", line 229, in install_hook_envs
    _hook_install(hook)
  File "/home/max/.local/lib/python3.10/site-packages/pre_commit/repository.py", line 85, in _hook_install
    lang.install_environment(
  File "/home/max/.local/lib/python3.10/site-packages/pre_commit/languages/golang.py", line 138, in install_environment
    _install_go(version, env_dir)
  File "/home/max/.local/lib/python3.10/site-packages/pre_commit/languages/golang.py", line 107, in _install_go
    raise ValueError(
ValueError: Could not find a version matching your system requirements (os=linux; arch=amd64)
@BaseMax
Copy link
Member Author

BaseMax commented Jan 13, 2025

sudo apt update
sudo apt install golang-go
go version

@BaseMax
Copy link
Member Author

BaseMax commented Jan 13, 2025

max@Workstation:/mnt/c/Users/MAX/salam$ sudo apt install golang-go
[sudo] password for max:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  golang-1.18-go golang-1.18-src golang-src
Suggested packages:
  bzr | brz mercurial subversion
The following NEW packages will be installed:
  golang-1.18-go golang-1.18-src golang-go golang-src
0 upgraded, 4 newly installed, 0 to remove and 61 not upgraded.
Need to get 82.4 MB of archives.
After this operation, 437 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 golang-1.18-src all 1.18.1-1ubuntu1.2 [16.3 MB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 golang-1.18-go amd64 1.18.1-1ubuntu1.2 [66.1 MB]
Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 golang-src all 2:1.18~0ubuntu2 [4438 B]
Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 golang-go amd64 2:1.18~0ubuntu2 [41.8 kB]
Fetched 82.4 MB in 17s (4845 kB/s)
Selecting previously unselected package golang-1.18-src.
(Reading database ... 53879 files and directories currently installed.)
Preparing to unpack .../golang-1.18-src_1.18.1-1ubuntu1.2_all.deb ...
Unpacking golang-1.18-src (1.18.1-1ubuntu1.2) ...
Selecting previously unselected package golang-1.18-go.
Preparing to unpack .../golang-1.18-go_1.18.1-1ubuntu1.2_amd64.deb ...
Unpacking golang-1.18-go (1.18.1-1ubuntu1.2) ...
Selecting previously unselected package golang-src.
Preparing to unpack .../golang-src_2%3a1.18~0ubuntu2_all.deb ...
Unpacking golang-src (2:1.18~0ubuntu2) ...
Selecting previously unselected package golang-go:amd64.
Preparing to unpack .../golang-go_2%3a1.18~0ubuntu2_amd64.deb ...
Unpacking golang-go:amd64 (2:1.18~0ubuntu2) ...
Setting up golang-1.18-src (1.18.1-1ubuntu1.2) ...
Setting up golang-src (2:1.18~0ubuntu2) ...
Setting up golang-1.18-go (1.18.1-1ubuntu1.2) ...
Setting up golang-go:amd64 (2:1.18~0ubuntu2) ...
Processing triggers for man-db (2.10.2-1) ...



max@Workstation:/mnt/c/Users/MAX/salam$ pre-commit run --all-files
[INFO] Installing environment for https://github.com/gitleaks/gitleaks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/go', 'install', './...')
return code: 1
stdout: (none)
stderr:
    go: errors parsing go.mod:
    /home/max/.cache/pre-commit/repoywcv75cb/go.mod:5: unknown directive: toolchain
Check the log at /home/max/.cache/pre-commit/pre-commit.log


max@Workstation:/mnt/c/Users/MAX/salam$ go version
go version go1.18.1 linux/amd64

@BaseMax
Copy link
Member Author

BaseMax commented Jan 13, 2025

Downloading from https://dl.google.com/go/go1.23.4.linux-amd64.tar.gz

And:

max@Workstation:/mnt/c$ mv go1.23.4.linux-amd64.tar.gz /tmp
cd /max@Workstation:/mnt/c$ cd /tmp
max@Workstation:/tmp$ ^C
max@Workstation:/tmp$ sudo tar -C /usr/local -xzf go1.21.6.linux-amd64.tar.gz
tar (child): go1.21.6.linux-amd64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
max@Workstation:/tmp$ sudo rm -rf /usr/local/go
max@Workstation:/tmp$ sudo tar -C /usr/local -xzf go1.21.6.linux-amd64.tar.gz
tar (child): go1.21.6.linux-amd64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
max@Workstation:/tmp$ sudo tar -C /usr/local -xzf go1.23.4.linux-amd64.tar.gz
max@Workstation:/tmp$ export PATH=$PATH:/usr/local/go/bin
max@Workstation:/tmp$ source ~/.bashrc
go version
go version go1.23.4 linux/amd64

@BaseMax
Copy link
Member Author

BaseMax commented Jan 13, 2025

max@Workstation:/mnt/c/Users/Max/salam$ pre-commit run --all-files
[INFO] Installing environment for https://github.com/gitleaks/gitleaks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/codespell-project/codespell.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/tcort/markdown-link-check.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/igorshubovych/markdownlint-cli.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/shssoichiro/oxipng.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/adrienverge/yamllint.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/mirrors-clang-format.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pycqa/isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit/mirrors-mypy.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
run identity.............................................................Passed
- hook id: identity
- duration: 0.05s

build/tags/figcaption.json
.prettierrc
build/tags/address.py
src/validator_style.h
.editorconfig
assets/panel.jpg
build/tags/input.py
build/styles/align-content.json
build/data/styles/values/single_animation_iteration_counts.json
.github/workflows/test.yml
build/tags/param.json
build/data/styles/values/step_positions.py
build/tags/textarea.json
src/file.h
build/tags/iframe.py
build/tags/h5.json
src/ast.h
build/data/styles/values/single_animation_directions.json
build/tags/em.py
build/styles/all.json
test/layout/flex-rows/index.html
src/hashmap.h
.github/linters/.hadolint.yaml
config/yaml/json/layout/attribute/style/value.json
example/test5.salam
build/tags/br.py
build/tags/tt.py
.github/workflows/proselint.yml
build/data/styles/values/step_positions.json
build/tags/b.json
build/tags/strong.json
build/tags/s.py
config/yaml/requirements.txt
src/generated-config/ast_layout_type_attributes_all.h
requirements.txt
build/tags/table.json
build/tags/section.py
.github/linters/codespell.txt
example/test-select.salam
example/js.salam
test/layout/flex-rows/script.js
config/yaml/layout/attribute/style/global_value.yaml
config/yaml/layout/py.typed
build/tags/label.py
build/tags/wbr.py
config/yaml/layout/attribute/type.validate.py
.github/workflows/build-release.yml
build/tags/dt.json
src/generated-config/ast_type.h
build/styles/animation-iteration-count.json
src/generated-config/ast_layout_type_attributes.h
build/tags/bdo.py
build/tags/ruby.py
example/test-box.salam
CODE_OF_CONDUCT.md
test/layout/flex-columns/index.html
build/tags/base.py
build/tags/td.json
build/tags/abbr.json
build/styles/accent-color.py
build/styles/.py
build/tags/option.json
build/tags/dl.py
config/yaml/sync.py
example/hover.salam
src/generated-config/ast_layout_attribute_type.h
src/generator_layout.h
config/yaml/layout/attribute/style/global_value.validate.py
build/data/styles/values/content_distributions.py
build/data/styles/values/step_easing_functions.json
README.md
src/generated-config/ast_layout_type_attributes_values.h
build/data/styles/run_all.sh
example/custom-font.salam
build/tags/fieldset.py
build/data/styles/values/step_easing_functions.py
build/tags/h5.py
.dockerignore
example/form-action.salam
src/downloader.c
build/tags/noscript.json
build/tags/caption.json
test/layout/hello-world/index.html
build/tags/area.py
build/tags/button.py
example/test2.salam
build/tags/details.json
build/tags/select.json
build/tags/tbody.json
build/data/styles/values/content_positions.py
build-webassembly.bat
test/layout/hello-world/script.js
src/array.h
.pre-commit-config.yaml
build/tags/li.py
test/layout/hello-world/layout.salam
build/tags/sup.json
src/generated-config/ast_layout_type.h
build/tags/address.json
build/tags/div.py
build/styles/all.py
build/tags/header.py
build/tags/option.py
example/everything.salam
build/tags/small.json
build/styles/animation-direction.py
build/tags/hgroup.py
config/module/utils.py
example/margin-auto.salam
build/data/tags/values/referrerpolicies.py
build/tags/ol.json
build/tags/search.json
src/ast_layout.c
build/tags/ul.py
build/tags/source.py
.gitattributes
build/styles/align-items.json
build/tags/optgroup.json
build/styles/background-size.py
src/ast_layout.h
src/ast_layout_style.h
build/type.py
build/data/styles/values/overflow_positions.py
src/hashmap_custom.h
.github/dependabot.yml
build/tags/datalist.json
src/log.h
build/tags/legend.py
src/validator.h
build/values.py
.github/workflows/super-linter.yml
config/json/layout/type.json
build/tags/rp.py
build/tags/track.json
build/tags/samp.json
src/main.c
build/property.py
build/tags/col.py
build/tags/colgroup.py
build/tags/b.py
src/string_buffer.h
build/tags/ol.py
test/layout/flex-columns/style.css
Makefile
build/tags/blockquote.py
build/data/styles/values/cubic_bezier_easing_functions.py
config/yaml/docs.md
build/tags/figure.json
build/tags/kbd.json
src/validator_style.c
src/parser.c
build/tags/data.json
build/tags/tr.json
config/yaml/layout/attribute/type.yaml
build-linux.sh
build/tags/var.json
build/tags/ins.json
build/element.py
config/yaml/language.yaml
example/testgroup.salam
config/yaml/json/block.json
config/yaml/layout/attribute/value.yaml
build/styles/aspect-ratio.py
docker/docker-compose.yaml
assets/logo-box.svg
build/tags/summary.json
build/tags/template.json
test/layout/body-hover/script.js
build/tags/sub.json
build/tags/i.py
example/test-table.salam
build/tags/br.json
build/tags/hgroup.json
example/test-link.salam
build-webassembly.sh
src/generated-config/ast_layout_attribute_style_type.h
build/data/tags/values/dirs.json
build/tags/link.py
build/tags/span.json
build/tags/figcaption.py
build/tags/param.py
config/admin/templates/edit.html.jinja
example/another-test.salam
src/downloader.h
build/styles/backface-visibility.py
build/tags/h4.py
example/input.salam
build/tags/h1.json
src/memory.c
config/yaml/json/layout/attribute/style/global_value.json
build/styles/animation-play-state.json
build/data/tags/run_all.sh
build/data/styles/values/run_all.sh
build/data/styles/values/content_distributions.json
config/admin/app.py
build/tags/pre.py
build/data/tags/languages.py
CONTRIBUTING.md
src/file.c
build/tags/div.json
build/lang.py
build/styles/align-items.py
config/yaml/layout/type.yaml
build/tags/hr.json
update.tmp
config/yaml/layout/attribute/value.validate.py
build/tags/cite.py
build/tags/output.json
build/styles/background-position-y.py
test/layout/flex-columns/script.js
src/generated-config/ast_layout_attribute_style_global.h
src/log.c
test/layout/custom-font/script.js
.github/ISSUE_TEMPLATE/custom.md
build/tags/u.py
config/yaml/layout/attribute/style/type.yaml
build/styles/animation-range.json
build/tags/svg.json
build/tags/datalist.py
build/tags/tr.py
build/tags/footer.py
build/tags/ins.py
test/layout/flex-rows/layout.salam
build-windows.bat
src/lexer.c
build/tags/form.py
config/yaml/json/layout/attribute/value.json
build/data/styles/values/baseline_positions.json
build/tags/bdo.json
build/tags/th.json
src/generated-config/ast_layout_attribute_filter.h
config/json/layout/attribute/style/value.json
build/tags/script.json
config/yaml/json/type.json
src/token.h
build/tags/template.py
build/tags/em.json
build/tags/li.json
example/test-label.salam
build/tags/data.py
.github/ISSUE_TEMPLATE/feature_request.md
build/data/styles/values/easing_functions.py
build/tags/td.py
src/generated-config/ast_layout_attribute_style_value_extern.h
example/testhover.salam
build/data/styles/values/content_positions.json
build/data/styles/values/self_positions.json
build/tags/dl.json
example/test6.salam
build/tags/code.py
build/tags/input.json
.github/CODEOWNERS
build/prebuild.py
example/testme.salam
test/layout/body-hover/style.css
build/tags/h3.py
example/test8.salam
.prettierignore
build/tags/table.py
src/generated-config/ast_layout_attribute_value.h
build/attribute.py
config/yaml/layout/__init__.py
build/tags/progress.json
build/data/styles/values/baseline_positions.py
build/tags/q.json
build/tags/h6.json
build/tags/thead.json
src/generator.h
src/parser_layout.h
config/yaml/type.validate.py
build/styles/display.py
src/array.c
build/tags/aside.py
build/styles/animation-fill-mode.py
build/tags/code.json
build/data/tags/values/targets.json
test/layout/tags/a/test1/layout.salam
config/yaml/json/layout/attribute/style/state.json
src/generated-config/ast_layout_attribute_style_state_type.h
build/tags/article.json
build/data/styles/values/single_animation_iteration_counts.py
src/hashmap.c
build/tags/progress.py
config/module/validation.py
build/tags/h6.py
example/form.salam
build/data/tags/countries.json
build/styles/animation-play-state.py
.github/ISSUE_TEMPLATE/bug_report.md
test/layout/flex-rows/style.css
build/data/styles/values/self_positions.py
.github/workflows/web-assembly.yml
pyproject.toml
build/tags/i.json
build/tags/caption.py
config/yaml/layout/attribute/style/__init__.py
src/generated-config/ast_layout_attribute_value_extern.h
build/tags/a.py
build/data/styles/values/linear_easing_functions.py
build/styles/animation-name.py
test/layout/body-hover/index.html
build/data/tags/values/rels.py
config/yaml/json/layout/attribute/style/type.json
build/data/tags/values/crossorigins.json
build/tags/tfoot.json
example/card-header.salam
build/tags/audio.json
example/test-image-link.salam
src/memory.h
build/tags/thead.py
build/tags/p.py
.github/pull_request_template.md
build/styles/animation-duration.json
build/tags/svg.py
build/tags/video.json
build/tags/u.json
test/layout/flex-columns/layout.salam
build/data/styles/values/cubic_bezier_easing_functions.json
build/styles/run_all.sh
src/generator_identifier.h
src/parser.h
src/generator_identifier.c
build/tags/audio.py
build/tags/h2.py
src/generator_salam.c
build/tags/canvas.py
test/layout/hello-world/style.css
src/tempCodeRunnerFile
build/tags/col.json
docker/Dockerfile
build/tags/iframe.json
config/json/layout/attribute/style/type.json
build/tags/sup.py
config/json/block.json
test/layout/custom-font/tokens.txt
build/tags/dd.json
src/generated-config/ast_value_kind.h
config/admin/templates/index.html.jinja
build/styles/animation-timing-function.py
config/yaml/layout/attribute/style/value.validate.py
build/tags/label.json
build/styles/align-self.py
build/styles/backdrop-filter.py
build/tags/bdi.py
example/test7.salam
build/tags/kbd.py
src/array_custom.h
config/yaml/language.validate.py
test/layout/body-hover/layout.salam
config/json/layout/attribute/style/global_value.json
src/generator.c
build/styles/animation-delay.json
build/tags/style.py
build/tags/area.json
.github/workflows/run-sync-script.yaml
.github/linters/.htmlhintrc
example/test-first.salam
build/tags/source.json
assets/logo.png
build/tags/dfn.json
test/layout/body-hover/tokens.txt
config/yaml/layout/attribute/style/value.convert.py
build/tags/textarea.py
build/tags/script.py
build/tags/ul.json
build/tags/time.py
build/tags/blockquote.json
build/tags/colgroup.json
build/data/styles/values/single_animation_play_states.json
build/tags/tfoot.py
build/tags/details.py
salam-online.html
build/tags/h4.json
build/tags/img.py
example/bintext.py
example/test-lint.salam
build/tags/var.py
build/tags/base.json
.github/linters/.markdown-lint.yml
build/tags/span.py
example/test3.salam
example/page-hover-opacity.salam
build/tags/dt.py
build/tags/rp.json
src/generator_layout_style.h
build/data/styles/values/linear_easing_functions.json
build/tags/track.py
build/tags/search.py
build/tags/h3.json
config/yaml/layout/type.validate.py
build/tags/p.json
build/styles/animation-iteration-count.py
build/styles/animation-range.py
build/styles/align-self.json
build/data/tags/countries.py
assets/logo.svg
build/tags/article.py
build/styles/background-repeat.py
build/data/tags/values/dirs.py
build/styles/block-size.py
build/data/tags/languages.json
build/tags/img.json
example/test-button.salam
test/layout/custom-font/layout.salam
build/data/styles/values/compat_autos.py
.github/linters/.flake8
config/admin/requirements.txt
test/layout/custom-font/index.html
src/string_buffer.c
build/tags/ruby.json
build/tags/noscript.py
build/styles/display.json
build/tags/tbody.py
build/tags/header.json
src/tempCodeRunnerFile.h
build/data/styles/values/single_animation_directions.py
src/generated-config/ast_layout_type_attributes_values_extern.h
example/test-custom-button.salam
test/layout/custom-font/style.css
build/tags/picture.py
build/tags/style.json
build/tags/run_all.sh
build/tags/rt.json
build/tags/picture.json
src/array_custom.c
build/data/tags/values/run_all.sh
build/styles/animation-name.json
config/yaml/type.yaml
build/tags/rt.py
example/test.salam
build/tags/canvas.json
config/json/type.json
src/generator_layout_style.c
config/yaml/layout/attribute/style/type.validate.py
config/yaml/layout/attribute/__init__.py
example/test4.salam
build/tags/footer.json
VERSION
build/data/styles/values/easing_functions.json
build/tags/dfn.py
build/tags/summary.py
src/validator.c
build/tags/section.json
config/yaml/layout/attribute/style/value.yaml
build/tags/bdi.json
example/inputme.salam
config/yaml/json/layout/attribute/type.json
build/tags/hr.py
build/data/styles/values/overflow_positions.json
build/tags/dialog.json
build/data/tags/mediatypes.json
src/lexer.h
build/tags/th.py
build/styles/animation-duration.py
build/data/tags/values/targets.py
src/hashmap_custom.c
.github/workflows/first-interaction.yml
build/tags/aside.json
build/tags/figure.py
config/module/__init__.py
src/generated-config/ast_block_type.h
build/tags/s.json
example/test-textarea.salam
test/tests.py
build/tags/dialog.py
src/base.h
example/card.salam
config/yaml/layout/attribute/style/state.validate.py
build/data/tags/values/rels.json
.github/linters/.yaml-lint.yml
src/generator_salam.h
build/value.py
config/json/layout/attribute/type.json
build/tags/sub.py
build/tags/strong.py
build/tags/cite.json
src/generated-config/ast_layout_attribute_style_value.h
build/tags/samp.py
build/tags/tt.json
build/styles/compat_specials.py
.bashrc
build/tags/select.py
LICENSE
build/tags/del.py
build/tags/fieldset.json
assets/logo-box.png
example/test-include.salam
build/styles/animation-fill-mode.json
config/yaml/json/layout/type.json
.clang-format
example/try.salam
build/data/tags/values/methods.json
build/tags/output.py
build/styles/align-content.py
src/generator_layout.c
build/tags/pre.json
build/styles/animation-delay.py
.proselintrc.json
.github/labeler.yml
build/tags/small.py
config/yaml/block.yaml
build/tags/abbr.py
.gitignore
build/tags/dd.py
.github/workflows/pr-labeler.yml
build/tags/del.json
build/styles/appearance.py
build/tags/wbr.json
example/layout.salam
build/tags/optgroup.py
src/ast_layout_style.c
example/include.salam
build/tags/video.py
build/data/tags/values/methods.py
config/yaml/layout/attribute/style/state.yaml
build/data/styles/values/single_animation_play_states.py
config/json/layout/attribute/style/state.json
example/repeat-block.salam
build/tags/q.py
build/data/tags/values/crossorigins.py
build/tags/h1.py
src/ast.c
build/data/tags/mediatypes.py
build/data/tags/values/referrerpolicies.json
example/test-input.salam
build/tags/a.json
build/tags/legend.json
src/parser_layout.c
build/text.py
build/tags/time.json
build/tags/h2.json
src/main.h

check hooks apply to the repository......................................Passed
run prettier.............................................................Failed
- hook id: prettier
- files were modified by this hook

.clang-format 33ms (unchanged)
.github/dependabot.yml 6ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.md 67ms
.github/ISSUE_TEMPLATE/custom.md 5ms
.github/ISSUE_TEMPLATE/feature_request.md 9ms
.github/labeler.yml 7ms
.github/linters/.hadolint.yaml 12ms
.github/linters/.htmlhintrc 46ms
.github/linters/.markdown-lint.yml 5ms
.github/linters/.yaml-lint.yml 2ms
.github/pull_request_template.md 5ms
.github/workflows/build-release.yml 19ms
.github/workflows/first-interaction.yml 7ms
.github/workflows/pr-labeler.yml 4ms
.github/workflows/proselint.yml 3ms
.github/workflows/run-sync-script.yaml 5ms
.github/workflows/super-linter.yml 4ms
.github/workflows/test.yml 9ms
.github/workflows/web-assembly.yml 6ms
.pre-commit-config.yaml 16ms (unchanged)
.prettierrc 5ms
.proselintrc.json 2ms
CODE_OF_CONDUCT.md 7ms
config/yaml/block.yaml 2ms
config/yaml/docs.md 118ms
config/yaml/json/block.json 0ms (unchanged)
config/yaml/json/layout/attribute/style/global_value.json 7ms
config/yaml/json/layout/attribute/style/state.json 25ms
config/yaml/json/layout/attribute/style/type.json 213ms
config/yaml/json/layout/attribute/style/value.json 177ms
config/yaml/json/layout/attribute/type.json 15ms
config/yaml/json/layout/attribute/value.json 5ms
config/yaml/json/layout/type.json 18ms
config/yaml/json/type.json 2ms
config/yaml/language.yaml 4ms
config/yaml/layout/attribute/style/global_value.yaml 0ms (unchanged)
config/yaml/layout/attribute/style/state.yaml 27ms
config/yaml/layout/attribute/style/type.yaml 474ms
config/yaml/layout/attribute/style/value.yaml 726ms
config/yaml/layout/attribute/type.yaml 31ms (unchanged)
config/yaml/layout/attribute/value.yaml 9ms (unchanged)
config/yaml/layout/type.yaml 67ms (unchanged)
config/yaml/type.yaml 2ms (unchanged)
CONTRIBUTING.md 25ms (unchanged)
docker/docker-compose.yaml 4ms (unchanged)
README.md 35ms (unchanged)
salam-online.html 116ms
.clang-format 23ms
.github/dependabot.yml 6ms
.github/ISSUE_TEMPLATE/bug_report.md 55ms
.github/ISSUE_TEMPLATE/custom.md 5ms
.github/ISSUE_TEMPLATE/feature_request.md 10ms
.github/labeler.yml 9ms
.github/linters/.hadolint.yaml 5ms
.github/linters/.htmlhintrc 44ms
.github/linters/.markdown-lint.yml 9ms
.github/linters/.yaml-lint.yml 5ms
.github/pull_request_template.md 0ms (unchanged)
.github/workflows/build-release.yml 24ms
.github/workflows/first-interaction.yml 2ms (unchanged)
.github/workflows/pr-labeler.yml 7ms (unchanged)
.github/workflows/proselint.yml 1ms (unchanged)
.github/workflows/run-sync-script.yaml 4ms (unchanged)
.github/workflows/super-linter.yml 4ms (unchanged)
.github/workflows/test.yml 14ms (unchanged)
.github/workflows/web-assembly.yml 9ms (unchanged)
.pre-commit-config.yaml 26ms (unchanged)
.prettierrc 4ms (unchanged)
.proselintrc.json 2ms (unchanged)
CODE_OF_CONDUCT.md 9ms (unchanged)
config/yaml/block.yaml 0ms (unchanged)
config/yaml/docs.md 89ms
config/yaml/json/block.json 4ms
config/yaml/json/layout/attribute/style/global_value.json 6ms
config/yaml/json/layout/attribute/style/state.json 31ms
config/yaml/json/layout/attribute/style/type.json 232ms
config/yaml/json/layout/attribute/style/value.json 216ms
config/yaml/json/layout/attribute/type.json 14ms
config/yaml/json/layout/attribute/value.json 6ms (unchanged)
config/yaml/json/layout/type.json 0ms (unchanged)
config/yaml/json/type.json 2ms
config/yaml/language.yaml 9ms
config/yaml/layout/attribute/style/global_value.yaml 3ms
config/yaml/layout/attribute/style/state.yaml 36ms
config/yaml/layout/attribute/style/type.yaml 415ms
config/yaml/layout/attribute/style/value.yaml 651ms
config/yaml/layout/attribute/type.yaml 41ms
config/yaml/layout/attribute/value.yaml 10ms
config/yaml/layout/type.yaml 50ms
config/yaml/type.yaml 10ms
CONTRIBUTING.md 27ms
docker/docker-compose.yaml 4ms
README.md 27ms (unchanged)
salam-online.html 109ms
.clang-format 31ms (unchanged)
.github/dependabot.yml 6ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.md 69ms
.github/ISSUE_TEMPLATE/custom.md 1ms (unchanged)
.github/ISSUE_TEMPLATE/feature_request.md 12ms
.github/labeler.yml 2ms (unchanged)
.github/linters/.hadolint.yaml 2ms
.github/linters/.htmlhintrc 43ms
.github/linters/.markdown-lint.yml 8ms
.github/linters/.yaml-lint.yml 4ms
.github/pull_request_template.md 12ms
.github/workflows/build-release.yml 32ms
.github/workflows/first-interaction.yml 4ms (unchanged)
.github/workflows/pr-labeler.yml 2ms (unchanged)
.github/workflows/proselint.yml 4ms (unchanged)
.github/workflows/run-sync-script.yaml 3ms (unchanged)
.github/workflows/super-linter.yml 9ms (unchanged)
.github/workflows/test.yml 14ms (unchanged)
.github/workflows/web-assembly.yml 4ms (unchanged)
.pre-commit-config.yaml 21ms (unchanged)
.prettierrc 16ms (unchanged)
.proselintrc.json 1ms (unchanged)
CODE_OF_CONDUCT.md 8ms (unchanged)
config/yaml/block.yaml 0ms (unchanged)
config/yaml/docs.md 125ms
config/yaml/json/block.json 4ms (unchanged)
config/yaml/json/layout/attribute/style/global_value.json 5ms (unchanged)
config/yaml/json/layout/attribute/style/state.json 19ms
config/yaml/json/layout/attribute/style/type.json 197ms
config/yaml/json/layout/attribute/style/value.json 245ms
config/yaml/json/layout/attribute/type.json 9ms (unchanged)
config/yaml/json/layout/attribute/value.json 8ms (unchanged)
config/yaml/json/layout/type.json 15ms (unchanged)
config/yaml/json/type.json 1ms (unchanged)
config/yaml/language.yaml 4ms (unchanged)
config/yaml/layout/attribute/style/global_value.yaml 5ms (unchanged)
config/yaml/layout/attribute/style/state.yaml 15ms (unchanged)
config/yaml/layout/attribute/style/type.yaml 316ms
config/yaml/layout/attribute/style/value.yaml 781ms
config/yaml/layout/attribute/type.yaml 31ms
config/yaml/layout/attribute/value.yaml 8ms (unchanged)
config/yaml/layout/type.yaml 56ms
config/yaml/type.yaml 3ms (unchanged)
CONTRIBUTING.md 25ms
docker/docker-compose.yaml 7ms (unchanged)
README.md 0ms (unchanged)
salam-online.html 117ms
.clang-format 40ms (unchanged)
.github/dependabot.yml 6ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.md 69ms
.github/ISSUE_TEMPLATE/custom.md 3ms (unchanged)
.github/ISSUE_TEMPLATE/feature_request.md 12ms (unchanged)
.github/labeler.yml 13ms (unchanged)
.github/linters/.hadolint.yaml 2ms (unchanged)
.github/linters/.htmlhintrc 52ms (unchanged)
.github/linters/.markdown-lint.yml 5ms (unchanged)
.github/linters/.yaml-lint.yml 4ms (unchanged)
.github/pull_request_template.md 5ms (unchanged)
.github/workflows/build-release.yml 33ms (unchanged)
.github/workflows/first-interaction.yml 3ms (unchanged)
.github/workflows/pr-labeler.yml 3ms (unchanged)
.github/workflows/proselint.yml 3ms (unchanged)
.github/workflows/run-sync-script.yaml 5ms (unchanged)
.github/workflows/super-linter.yml 3ms (unchanged)
.github/workflows/test.yml 17ms (unchanged)
.github/workflows/web-assembly.yml 3ms (unchanged)
.pre-commit-config.yaml 22ms (unchanged)
.prettierrc 7ms (unchanged)
.proselintrc.json 3ms (unchanged)
CODE_OF_CONDUCT.md 7ms (unchanged)
config/yaml/block.yaml 2ms
config/yaml/docs.md 114ms
config/yaml/json/block.json 9ms (unchanged)
config/yaml/json/layout/attribute/style/global_value.json 3ms (unchanged)
config/yaml/json/layout/attribute/style/state.json 25ms (unchanged)
config/yaml/json/layout/attribute/style/type.json 201ms
config/yaml/json/layout/attribute/style/value.json 198ms
config/yaml/json/layout/attribute/type.json 12ms (unchanged)
config/yaml/json/layout/attribute/value.json 6ms (unchanged)
config/yaml/json/layout/type.json 0ms (unchanged)
config/yaml/json/type.json 3ms
config/yaml/language.yaml 2ms
config/yaml/layout/attribute/style/global_value.yaml 8ms (unchanged)
config/yaml/layout/attribute/style/state.yaml 17ms (unchanged)
config/yaml/layout/attribute/style/type.yaml 261ms
config/yaml/layout/attribute/style/value.yaml 868ms
config/yaml/layout/attribute/type.yaml 31ms
config/yaml/layout/attribute/value.yaml 10ms (unchanged)
config/yaml/layout/type.yaml 66ms
config/yaml/type.yaml 3ms (unchanged)
CONTRIBUTING.md 1ms (unchanged)
docker/docker-compose.yaml 2ms (unchanged)
README.md 21ms
salam-online.html 126ms
.clang-format 33ms (unchanged)
.github/dependabot.yml 12ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.md 65ms
.github/ISSUE_TEMPLATE/custom.md 1ms (unchanged)
.github/ISSUE_TEMPLATE/feature_request.md 9ms
.github/labeler.yml 17ms (unchanged)
.github/linters/.hadolint.yaml 6ms (unchanged)
.github/linters/.htmlhintrc 59ms
.github/linters/.markdown-lint.yml 2ms (unchanged)
.github/linters/.yaml-lint.yml 3ms (unchanged)
.github/pull_request_template.md 4ms (unchanged)
.github/workflows/build-release.yml 27ms (unchanged)
.github/workflows/first-interaction.yml 5ms (unchanged)
.github/workflows/pr-labeler.yml 2ms (unchanged)
.github/workflows/proselint.yml 4ms (unchanged)
.github/workflows/run-sync-script.yaml 5ms (unchanged)
.github/workflows/super-linter.yml 5ms (unchanged)
.github/workflows/test.yml 15ms (unchanged)
.github/workflows/web-assembly.yml 6ms (unchanged)
.pre-commit-config.yaml 15ms (unchanged)
.prettierrc 1ms (unchanged)
.proselintrc.json 7ms (unchanged)
CODE_OF_CONDUCT.md 10ms (unchanged)
config/yaml/block.yaml 1ms
config/yaml/docs.md 83ms
config/yaml/json/block.json 2ms (unchanged)
config/yaml/json/layout/attribute/style/global_value.json 6ms
config/yaml/json/layout/attribute/style/state.json 47ms
config/yaml/json/layout/attribute/style/type.json 179ms
config/yaml/json/layout/attribute/style/value.json 240ms
config/yaml/json/layout/attribute/type.json 13ms
config/yaml/json/layout/attribute/value.json 4ms
config/yaml/json/layout/type.json 15ms
config/yaml/json/type.json 2ms (unchanged)
config/yaml/language.yaml 1ms (unchanged)
config/yaml/layout/attribute/style/global_value.yaml 3ms
config/yaml/layout/attribute/style/state.yaml 3ms (unchanged)
config/yaml/layout/attribute/style/type.yaml 439ms
config/yaml/layout/attribute/style/value.yaml 688ms
config/yaml/layout/attribute/type.yaml 38ms
config/yaml/layout/attribute/value.yaml 17ms
config/yaml/layout/type.yaml 39ms
config/yaml/type.yaml 3ms
CONTRIBUTING.md 23ms
docker/docker-compose.yaml 1ms (unchanged)
README.md 15ms
salam-online.html 137ms
.clang-format 34ms (unchanged)
.github/dependabot.yml 8ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.md 58ms
.github/ISSUE_TEMPLATE/custom.md 4ms
.github/ISSUE_TEMPLATE/feature_request.md 8ms
.github/labeler.yml 10ms
.github/linters/.hadolint.yaml 7ms (unchanged)
.github/linters/.htmlhintrc 66ms
.github/linters/.markdown-lint.yml 2ms (unchanged)
.github/linters/.yaml-lint.yml 6ms (unchanged)
.github/pull_request_template.md 12ms (unchanged)
.github/workflows/build-release.yml 19ms (unchanged)
.github/workflows/first-interaction.yml 3ms (unchanged)
.github/workflows/pr-labeler.yml 3ms (unchanged)
.github/workflows/proselint.yml 7ms (unchanged)
.github/workflows/run-sync-script.yaml 6ms (unchanged)
.github/workflows/super-linter.yml 14ms (unchanged)
.github/workflows/test.yml 9ms (unchanged)
.github/workflows/web-assembly.yml 4ms (unchanged)
.pre-commit-config.yaml 18ms (unchanged)
.prettierrc 9ms (unchanged)
.proselintrc.json 3ms (unchanged)
CODE_OF_CONDUCT.md 6ms (unchanged)
config/yaml/block.yaml 1ms
config/yaml/docs.md 89ms
config/yaml/json/block.json 8ms
config/yaml/json/layout/attribute/style/global_value.json 7ms
config/yaml/json/layout/attribute/style/state.json 27ms
config/yaml/json/layout/attribute/style/type.json 145ms
config/yaml/json/layout/attribute/style/value.json 193ms
config/yaml/json/layout/attribute/type.json 13ms
config/yaml/json/layout/attribute/value.json 9ms
config/yaml/json/layout/type.json 38ms
config/yaml/json/type.json 3ms (unchanged)
config/yaml/language.yaml 4ms (unchanged)
config/yaml/layout/attribute/style/global_value.yaml 6ms (unchanged)
config/yaml/layout/attribute/style/state.yaml 24ms (unchanged)
config/yaml/layout/attribute/style/type.yaml 370ms
config/yaml/layout/attribute/style/value.yaml 705ms
config/yaml/layout/attribute/type.yaml 23ms (unchanged)
config/yaml/layout/attribute/value.yaml 11ms (unchanged)
config/yaml/layout/type.yaml 75ms (unchanged)
config/yaml/type.yaml 3ms (unchanged)
CONTRIBUTING.md 21ms (unchanged)
docker/docker-compose.yaml 2ms (unchanged)
README.md 26ms (unchanged)
salam-online.html 166ms


run vulture..............................................................Passed
run black................................................................Failed
- hook id: black
- files were modified by this hook

reformatted build/data/styles/values/easing_functions.py
reformatted build/data/styles/values/content_distributions.py
reformatted build/data/styles/values/baseline_positions.py
reformatted build/data/styles/values/compat_autos.py
reformatted build/data/styles/values/linear_easing_functions.py
reformatted build/data/styles/values/cubic_bezier_easing_functions.py
reformatted build/data/styles/values/content_positions.py
reformatted build/data/styles/values/overflow_positions.py
reformatted build/data/styles/values/self_positions.py
reformatted build/data/styles/values/single_animation_play_states.py
reformatted build/data/styles/values/single_animation_directions.py
reformatted build/data/styles/values/step_easing_functions.py
reformatted build/data/styles/values/step_positions.py
reformatted build/data/tags/values/crossorigins.py
reformatted build/data/tags/values/dirs.py
reformatted build/data/tags/values/methods.py
reformatted build/lang.py
reformatted build/data/tags/values/targets.py
reformatted build/data/tags/values/referrerpolicies.py
reformatted build/data/tags/values/rels.py
reformatted build/styles/align-items.py
reformatted build/styles/accent-color.py
reformatted build/styles/align-content.py
reformatted build/property.py
reformatted build/styles/align-self.py
reformatted build/styles/all.py
reformatted build/styles/animation-play-state.py
reformatted build/styles/animation-name.py
reformatted build/styles/aspect-ratio.py
reformatted build/styles/appearance.py
reformatted build/styles/backdrop-filter.py
reformatted build/styles/animation-timing-function.py
reformatted build/styles/animation-range.py
reformatted build/styles/background-position-y.py
reformatted build/styles/backface-visibility.py
reformatted build/styles/background-size.py
reformatted build/styles/block-size.py
reformatted build/styles/compat_specials.py
reformatted build/styles/background-repeat.py
reformatted build/tags/abbr.py
reformatted build/styles/display.py
reformatted build/tags/a.py
reformatted build/tags/audio.py
reformatted build/tags/col.py
reformatted build/tags/colgroup.py
reformatted build/tags/area.py
reformatted build/tags/data.py
reformatted build/tags/dfn.py
reformatted build/tags/fieldset.py
reformatted build/tags/button.py
reformatted build/tags/ins.py
reformatted build/tags/form.py
reformatted build/tags/optgroup.py
reformatted build/tags/ol.py
reformatted build/tags/option.py
reformatted build/tags/link.py
reformatted build/tags/param.py
reformatted build/tags/progress.py
reformatted build/tags/iframe.py
reformatted build/tags/select.py
reformatted build/tags/td.py
reformatted build/tags/time.py
reformatted build/tags/track.py
reformatted build/tags/wbr.py
reformatted build/tags/th.py
reformatted build/type.py
reformatted build/tags/textarea.py
reformatted build/values.py
reformatted build/tags/video.py
reformatted config/yaml/sync.py

All done! ✨ 🍰 ✨
70 files reformatted, 107 files left unchanged.

run bandit...............................................................Failed
- hook id: bandit
- files were modified by this hook

[main]  INFO    profile include tests: None
[main]  INFO    profile exclude tests: B605,B105
[main]  INFO    cli include tests: None
[main]  INFO    cli exclude tests: None
[main]  INFO    using config: pyproject.toml
[main]  INFO    running on Python 3.10.12
Working... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:02
Run started:2025-01-13 18:44:52.119630

Test results:
        No issues identified.

Code scanned:
        Total lines of code: 8699
        Total lines skipped (#nosec): 0

Run metrics:
        Total issues (by severity):
                Undefined: 0
                Low: 0
                Medium: 0
                High: 0
        Total issues (by confidence):
                Undefined: 0
                Low: 0
                Medium: 0
                High: 0
Files skipped (0):

run detect hardcoded secrets.............................................Passed
check for added large files..............................................Passed
check for case conflicts.................................................Passed
check that executables have shebangs.....................................Passed
check illegal windows names..........................(no files to check)Skipped
check for merge conflicts................................................Passed
check that scripts with shebangs are executable..........................Passed
check toml...............................................................Passed
check vcs permalinks.....................................................Passed
check yaml...............................................................Passed
detect destroyed symlinks................................................Passed
detect aws credentials...................................................Passed
detect private key.......................................................Passed
fix end of files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1
- files were modified by this hook

Fixing src/generated-config/ast_block_type.h
Fixing src/generated-config/ast_type.h
Fixing src/generated-config/ast_layout_attribute_style_value_extern.h
Fixing src/generated-config/ast_layout_attribute_style_state_type.h
Fixing src/generated-config/ast_layout_attribute_style_type.h
Fixing build/styles/.py
Fixing src/downloader.c
Fixing src/generated-config/ast_layout_type_attributes.h
Fixing src/generated-config/ast_layout_attribute_value.h
Fixing src/generated-config/ast_layout_attribute_style_global.h
Fixing src/generated-config/ast_layout_type_attributes_values.h
Fixing src/generated-config/ast_layout_type.h
Fixing src/generated-config/ast_layout_type_attributes_values_extern.h
Fixing src/generated-config/ast_layout_attribute_style_value.h
Fixing src/generated-config/ast_layout_attribute_type.h
Fixing src/generated-config/ast_layout_attribute_value_extern.h

fix utf-8 byte order marker..............................................Passed
forbid submodules....................................(no files to check)Skipped
mixed line ending........................................................Failed
- hook id: mixed-line-ending
- exit code: 1

src/generated-config/ast_layout_attribute_value_extern.h: fixed mixed line endings
src/generated-config/ast_layout_type.h: fixed mixed line endings
src/generated-config/ast_layout_attribute_style_value_extern.h: fixed mixed line endings
src/generated-config/ast_layout_type_attributes_values_extern.h: fixed mixed line endings
src/generated-config/ast_layout_type_attributes.h: fixed mixed line endings
src/generated-config/ast_type.h: fixed mixed line endings
src/generated-config/ast_block_type.h: fixed mixed line endings
src/generated-config/ast_layout_attribute_type.h: fixed mixed line endings
src/generated-config/ast_layout_attribute_style_value.h: fixed mixed line endings
src/generated-config/ast_layout_attribute_style_global.h: fixed mixed line endings
src/generated-config/ast_layout_attribute_style_type.h: fixed mixed line endings
src/generated-config/ast_layout_type_attributes_values.h: fixed mixed line endings
src/generated-config/ast_layout_attribute_style_state_type.h: fixed mixed line endings
src/generated-config/ast_layout_attribute_value.h: fixed mixed line endings
src/downloader.c: fixed mixed line endings

trim trailing whitespace.................................................Failed
- hook id: trailing-whitespace
- exit code: 1
- files were modified by this hook

Fixing build/styles/.py

run codespell............................................................Passed
run markdown link check..................................................Passed
run markdownlint.........................................................Passed
run oxipng...............................................................Passed
run yamllint.............................................................Passed
run clang-format.........................................................Failed
- hook id: clang-format
- files were modified by this hook
run isort (python).......................................................Passed
...

@BaseMax BaseMax closed this as completed Jan 13, 2025
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

No branches or pull requests

1 participant