René's URL Explorer Experiment


Title: SwiftLint doesn't compile on Swift 5.8 · Issue #2835 · pre-commit/pre-commit · GitHub

Open Graph Title: SwiftLint doesn't compile on Swift 5.8 · Issue #2835 · pre-commit/pre-commit

X Title: SwiftLint doesn't compile on Swift 5.8 · Issue #2835 · pre-commit/pre-commit

Description: search you tried in the issue tracker unknown option describe your issue I've got pre-commit configured with SwiftLint. Executing pre-commit run --all-files fails due to wrong -C option passed to swift build. pre-commit --version 3.2.1 ....

Open Graph Description: search you tried in the issue tracker unknown option describe your issue I've got pre-commit configured with SwiftLint. Executing pre-commit run --all-files fails due to wrong -C option passed to s...

X Description: search you tried in the issue tracker unknown option describe your issue I've got pre-commit configured with SwiftLint. Executing pre-commit run --all-files fails due to wrong -C option passed ...

Opengraph URL: https://github.com/pre-commit/pre-commit/issues/2835

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SwiftLint doesn't compile on Swift 5.8","articleBody":"### search you tried in the issue tracker\n\nunknown option\n\n### describe your issue\n\nI've got pre-commit configured with SwiftLint.\r\nExecuting `pre-commit run --all-files` fails due to wrong `-C` option passed to `swift build`.\n\n### pre-commit --version\n\n3.2.1\n\n### .pre-commit-config.yaml\n\n```yaml\nrepos:\r\n-   repo: https://github.com/pre-commit/pre-commit-hooks\r\n    rev: v2.3.0\r\n    hooks:\r\n    -   id: end-of-file-fixer\r\n    -   id: trailing-whitespace\r\n-   repo: https://github.com/nicklockwood/SwiftFormat\r\n    rev: 0.51.2\r\n    hooks:\r\n    -   id: swiftformat\r\n-   repo: https://github.com/realm/SwiftLint\r\n    rev: 0.50.3\r\n    hooks:\r\n    -   id: swiftlint\n```\n\n\n### ~/.cache/pre-commit/pre-commit.log (if present)\n\n### version information\r\n\r\n```\r\npre-commit version: 3.2.1\r\ngit --version: git version 2.39.2 (Apple Git-143)\r\nsys.version:\r\n    3.10.9 | packaged by conda-forge | (main, Feb  2 2023, 20:26:08) [Clang 14.0.6 ]\r\nsys.executable: /opt/homebrew/Caskroom/mambaforge/base/envs/torch2/bin/python\r\nos.name: posix\r\nsys.platform: darwin\r\n```\r\n\r\n### error information\r\n\r\n```\r\nAn unexpected error has occurred: CalledProcessError: command: ('/usr/bin/swift', 'build', '-C', '/Users/[REDACTED]/.cache/pre-commit/repoc7zisw50', '-c', 'release', '--build-path', '/Users/[REDACTED]/.cache/pre-commit/repoc7zisw50/swift_env-default/.build')\r\nreturn code: 64\r\nstdout: (none)\r\nstderr:\r\n    error: Unknown option '-C'\r\n    Usage: swift build \u003coptions\u003e\r\n      See 'build -help' for more information.\r\n```\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/opt/homebrew/Caskroom/mambaforge/base/envs/torch2/lib/python3.10/site-packages/pre_commit/error_handler.py\", line 73, in error_handler\r\n    yield\r\n  File \"/opt/homebrew/Caskroom/mambaforge/base/envs/torch2/lib/python3.10/site-packages/pre_commit/main.py\", line 409, in main\r\n    return run(args.config, store, args)\r\n  File \"/opt/homebrew/Caskroom/mambaforge/base/envs/torch2/lib/python3.10/site-packages/pre_commit/commands/run.py\", line 442, in run\r\n    install_hook_envs(to_install, store)\r\n  File \"/opt/homebrew/Caskroom/mambaforge/base/envs/torch2/lib/python3.10/site-packages/pre_commit/repository.py\", line 248, in install_hook_envs\r\n    _hook_install(hook)\r\n  File \"/opt/homebrew/Caskroom/mambaforge/base/envs/torch2/lib/python3.10/site-packages/pre_commit/repository.py\", line 95, in _hook_install\r\n    lang.install_environment(\r\n  File \"/opt/homebrew/Caskroom/mambaforge/base/envs/torch2/lib/python3.10/site-packages/pre_commit/languages/swift.py\", line 45, in install_environment\r\n    cmd_output_b(\r\n  File \"/opt/homebrew/Caskroom/mambaforge/base/envs/torch2/lib/python3.10/site-packages/pre_commit/util.py\", line 110, in cmd_output_b\r\n    raise CalledProcessError(returncode, cmd, stdout_b, stderr_b)\r\npre_commit.util.CalledProcessError: command: ('/usr/bin/swift', 'build', '-C', '/Users/[REDACTED]/.cache/pre-commit/repoc7zisw50', '-c', 'release', '--build-path', '/Users/[REDACTED]/.cache/pre-commit/repoc7zisw50/swift_env-default/.build')\r\nreturn code: 64\r\nstdout: (none)\r\nstderr:\r\n    error: Unknown option '-C'\r\n    Usage: swift build \u003coptions\u003e\r\n      See 'build -help' for more information.\r\n```\r\n","author":{"url":"https://github.com/kgrobelny-intive","@type":"Person","name":"kgrobelny-intive"},"datePublished":"2023-04-03T17:52:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/2835/pre-commit/issues/2835"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e6e889bb-81c0-a1db-5c9b-85e9d4f36464
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD80E:35B4AE:F292C0:1446E02:6A582BC4
html-safe-nonced061bf74f5075686a92d6b539399ebd755557e5ced9c794315762d6090f6d410
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODBFOjM1QjRBRTpGMjkyQzA6MTQ0NkUwMjo2QTU4MkJDNCIsInZpc2l0b3JfaWQiOiIzNjM0MDE5MDA2ODUwNTQyNTMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac30be73ca20e57cdbb4b86bdbbf9d730bcb9688d45a76bf24f097a55f0ede3c97
hovercard-subject-tagissue:1652507018
github-keyboard-shortcutsrepository,issues,commits,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pre-commit/pre-commit/2835/issue_layout
twitter:imagehttps://opengraph.githubassets.com/927fbad959b556c131a0e09ffc4c1e9c5dc4a58de7a4b8b7f4891718f0ce1afd/pre-commit/pre-commit/issues/2835
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/927fbad959b556c131a0e09ffc4c1e9c5dc4a58de7a4b8b7f4891718f0ce1afd/pre-commit/pre-commit/issues/2835
og:image:altsearch you tried in the issue tracker unknown option describe your issue I've got pre-commit configured with SwiftLint. Executing pre-commit run --all-files fails due to wrong -C option passed to s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekgrobelny-intive
hostnamegithub.com
expected-hostnamegithub.com
None5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6
turbo-cache-controlno-preview
go-importgithub.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git
octolytics-dimension-user_id6943086
octolytics-dimension-user_loginpre-commit
octolytics-dimension-repository_id17689377
octolytics-dimension-repository_nwopre-commit/pre-commit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17689377
octolytics-dimension-repository_network_root_nwopre-commit/pre-commit
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/pre-commit/pre-commit/issues/2835#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fissues%2F2835
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fissues%2F2835
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=pre-commit%2Fpre-commit
Reloadhttps://github.com/pre-commit/pre-commit/issues/2835
Reloadhttps://github.com/pre-commit/pre-commit/issues/2835
Reloadhttps://github.com/pre-commit/pre-commit/issues/2835
Please reload this pagehttps://github.com/pre-commit/pre-commit/issues/2835
pre-commit https://github.com/pre-commit
pre-commithttps://github.com/pre-commit/pre-commit
Please reload this pagehttps://github.com/pre-commit/pre-commit/issues/2835
Notifications https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Fork 986 https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Star 15.4k https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Code https://github.com/pre-commit/pre-commit
Issues 21 https://github.com/pre-commit/pre-commit/issues
Pull requests 10 https://github.com/pre-commit/pre-commit/pulls
Actions https://github.com/pre-commit/pre-commit/actions
Security and quality 0 https://github.com/pre-commit/pre-commit/security
Insights https://github.com/pre-commit/pre-commit/pulse
Code https://github.com/pre-commit/pre-commit
Issues https://github.com/pre-commit/pre-commit/issues
Pull requests https://github.com/pre-commit/pre-commit/pulls
Actions https://github.com/pre-commit/pre-commit/actions
Security and quality https://github.com/pre-commit/pre-commit/security
Insights https://github.com/pre-commit/pre-commit/pulse
SwiftLint doesn't compile on Swift 5.8https://github.com/pre-commit/pre-commit/issues/2835#top
https://github.com/kgrobelny-intive
kgrobelny-intivehttps://github.com/kgrobelny-intive
on Apr 3, 2023https://github.com/pre-commit/pre-commit/issues/2835#issue-1652507018
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.