mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-29 06:55:23 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8c4607b60 | ||
|
|
f9580a7c23 | ||
|
|
7fcbbcab0b | ||
|
|
2de0bf029d | ||
|
|
17d7bebf88 |
@@ -15,7 +15,7 @@
|
||||
"@fontsource/ibm-plex-mono": "5.3.0",
|
||||
"@fontsource/ibm-plex-sans": "5.3.0",
|
||||
"@fortawesome/free-solid-svg-icons": "7.3.1",
|
||||
"@perfect-design/ui": "0.3.11",
|
||||
"@perfect-design/ui": "0.4.0",
|
||||
"axios": "^1.20.0",
|
||||
"pinia": "^4.0.0",
|
||||
"vue": "^3.5.26",
|
||||
|
||||
Generated
+166
-170
@@ -23,8 +23,8 @@ importers:
|
||||
specifier: 7.3.1
|
||||
version: 7.3.1
|
||||
'@perfect-design/ui':
|
||||
specifier: 0.3.11
|
||||
version: 0.3.11([email protected](@vue/[email protected])([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))
|
||||
specifier: 0.4.0
|
||||
version: 0.4.0([email protected](@vue/[email protected])([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))
|
||||
axios:
|
||||
specifier: ^1.20.0
|
||||
version: 1.21.1([email protected]([email protected]))([email protected])
|
||||
@@ -36,20 +36,20 @@ importers:
|
||||
version: 3.5.46([email protected])
|
||||
vue-router:
|
||||
specifier: ^5.3.1
|
||||
version: 5.5.1(@vue/[email protected]5)([email protected])([email protected](@vue/[email protected])([email protected])([email protected]([email protected])))(rolldown@1.2.18)(vite@8.3.8([email protected])([email protected]))([email protected]([email protected]))
|
||||
version: 5.5.3(@vue/[email protected]6)([email protected])([email protected](@vue/[email protected])([email protected])([email protected]([email protected])))(rolldown@1.3.4)(vite@8.4.0([email protected])([email protected]))([email protected]([email protected]))
|
||||
devDependencies:
|
||||
'@tailwindcss/vite':
|
||||
specifier: ^4.3.3
|
||||
version: 4.3.5(vite@8.3.8([email protected])([email protected]))
|
||||
version: 4.3.5(vite@8.4.0([email protected])([email protected]))
|
||||
'@testing-library/jest-dom':
|
||||
specifier: ^8.0.0
|
||||
version: 8.0.0(@testing-library/[email protected])([email protected].1([email protected])(vite@8.3.8([email protected])([email protected])))
|
||||
version: 8.0.0(@testing-library/[email protected])([email protected].2([email protected])(vite@8.4.0([email protected])([email protected])))
|
||||
'@testing-library/vue':
|
||||
specifier: ^8.1.0
|
||||
version: 8.1.0(@vue/[email protected])(@vue/[email protected]5)(@vue/[email protected])([email protected]([email protected]))
|
||||
version: 8.1.0(@vue/[email protected])(@vue/[email protected]6)(@vue/[email protected])([email protected]([email protected]))
|
||||
'@vitejs/plugin-vue':
|
||||
specifier: ^6.0.3
|
||||
version: 6.0.11(vite@8.3.8([email protected])([email protected]))([email protected]([email protected]))
|
||||
version: 6.0.11(vite@8.4.0([email protected])([email protected]))([email protected]([email protected]))
|
||||
'@vue/test-utils':
|
||||
specifier: ^2.4.6
|
||||
version: 2.6.0(@vue/[email protected])(@vue/[email protected])([email protected]([email protected]))
|
||||
@@ -64,10 +64,10 @@ importers:
|
||||
version: 6.0.3
|
||||
vite:
|
||||
specifier: ^8.0.0
|
||||
version: 8.3.8([email protected])([email protected])
|
||||
version: 8.4.0([email protected])([email protected])
|
||||
vitest:
|
||||
specifier: ^5.0.3
|
||||
version: 5.1.1([email protected])(vite@8.3.8([email protected])([email protected]))
|
||||
version: 5.1.2([email protected])(vite@8.4.0([email protected])([email protected]))
|
||||
vue-tsc:
|
||||
specifier: ^3.2.1
|
||||
version: 3.3.14([email protected])
|
||||
@@ -350,102 +350,113 @@ packages:
|
||||
'@one-ini/[email protected]':
|
||||
resolution: {integrity: sha512-TUqERXGNTifZ9y2g3wPxQrw3HpHv/02DsW3D90T9x0hhonrL1ZqpSmNrU2XkoIq0fP1N6gZfVQzy2Fw1ZvGBNg==}
|
||||
|
||||
'@oxc-project/[email protected]56.0':
|
||||
resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==}
|
||||
'@oxc-project/[email protected]0.0':
|
||||
resolution: {integrity: sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==}
|
||||
|
||||
'@perfect-design/ui@0.3.11':
|
||||
resolution: {integrity: sha512-vu7liBjd6ZndJWio3gt1EHmOVi1VAcPQ/v+8xQRLvrIH9Bd43ZYsgsh+JITpBRmagYyAxPjo1zFU7ma/I6lVmg==}
|
||||
'@perfect-design/ui@0.4.0':
|
||||
resolution: {integrity: sha512-iAAW2L6ZckwzHUa72bvQkIQjtYTgVBZ5XhH7FMIRQ0zD99G7F7DMgoD8zwomR1tIxkZETNYFzA3lVU50bG30zQ==}
|
||||
peerDependencies:
|
||||
pinia: ^3.0.0 || ^4.0.0
|
||||
tailwindcss: ^4.1.0
|
||||
vue: ^3.5.0
|
||||
|
||||
'@rolldown/binding-android-arm-eabi@1.2.18':
|
||||
resolution: {integrity: sha512-ubTG+4KlidvioxjOFdsdEa2F6JVGZb8m2ByJUqQ7fYzUeT1cEn194POcsQ10PKH4p//q0YQn4SB3YpSuzcA1Yg==}
|
||||
'@rolldown/binding-android-arm-eabi@1.3.4':
|
||||
resolution: {integrity: sha512-xCW8CkL/ualx/SbYqeG9iK87lJCZGDQ0soE+kaORJ0Bd+pHALyE4qK7BStmEAyYWLEzZ3/biSIpA6/7GDFvzIg==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm]
|
||||
os: [android]
|
||||
|
||||
'@rolldown/binding-android-arm64@1.2.18':
|
||||
resolution: {integrity: sha512-2Xa1t/JeFGTZn5TbzgPppcCftF8sCVnTNvrIvoSdcZhoFzAuVy1L3xxQUQ4sfWDtwVzg1u6Yi1R3SlJugRNV2Q==}
|
||||
'@rolldown/binding-android-arm64@1.3.4':
|
||||
resolution: {integrity: sha512-5lifIO+b/prcM9sx/bkPN4w6UEToEfQ3gjhx0+0neuL+dkYskI792CfAq03T51jc8JFcaYXs2hi3l8RjiH/VWQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [android]
|
||||
|
||||
'@rolldown/binding-darwin-arm64@1.2.18':
|
||||
resolution: {integrity: sha512-iUzw9HshVvrWci9gVXjxWS7/M/IcLvNo67vu2c/w9zKBz4hIvPRixdUpIW/iCfhldLaq9ER2hecsI9UY5z0/yA==}
|
||||
'@rolldown/binding-darwin-arm64@1.3.4':
|
||||
resolution: {integrity: sha512-RCgxTI4AJQxhVF//BI3ImQOsXTHrF4Eg+f99jBy8WoETA2kSEGFxpnrVmW0leQq/2aBR4R5AC6csmy3rc66e3Q==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
|
||||
'@rolldown/binding-darwin-x64@1.2.18':
|
||||
resolution: {integrity: sha512-XuDHFzbFEtZl0QGJi92+fmG67tfnp1iZ9VOeDkwasGyTq2VG3/5PnJnvAr+MTzFh/rNScJ3VhN+XpZyyGsN7Jw==}
|
||||
'@rolldown/binding-darwin-x64@1.3.4':
|
||||
resolution: {integrity: sha512-zNPJVVPUaDEj+L0lImoK3rFv2b+Z5gNijI6DWu/fcD3/1TfmRXKb9ZyxbSN+2AhlctqjbNzUvCsMa+EBhnEM4Q==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [darwin]
|
||||
|
||||
'@rolldown/binding-freebsd-x64@1.2.18':
|
||||
resolution: {integrity: sha512-MM8opLfsLK15oEXDz6iBc0t3ahu+ew9jsAmha+ovZ33hSwYgqo7YmpRITqFTfW7xA71BLEQ3jJdTsaCmhB1c9w==}
|
||||
'@rolldown/binding-freebsd-x64@1.3.4':
|
||||
resolution: {integrity: sha512-upP6g7ZIRy5by1RDQ/EphHIdJ5xK0eUD7sUgfZFWJ49s4XdbYsIvIlAPtrFpayR70Hhf9J22lb4Pm8/9FhrZmg==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [freebsd]
|
||||
|
||||
'@rolldown/binding-linux-arm-gnueabihf@1.2.18':
|
||||
resolution: {integrity: sha512-J6EoCWiy5RnFQzHrKyHXXevZ9lukQfGpnchX/zG/k/WC2nc9O9XyS1JgA8kI9VxMFggMbCPjpv7LcikriXfehw==}
|
||||
'@rolldown/binding-linux-arm-gnueabihf@1.3.4':
|
||||
resolution: {integrity: sha512-SAX5C5+poMLCxu8dkPF6h5yst40rkzs+9Y3cbPn2OFSydmHjAEprrGi64zGgnYyPIVZfdGUFqJ2fJbfbnHI+mA==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm]
|
||||
os: [linux]
|
||||
|
||||
'@rolldown/binding-linux-arm64-gnu@1.2.18':
|
||||
resolution: {integrity: sha512-HIkFuLF7CdDeki+1aCZLLbLq0hk/PHntb+z4/YCTo47JbksTD6jJEELIz92tYROmDmvMrNqUMqBi71BkJLDR+A==}
|
||||
'@rolldown/binding-linux-arm64-gnu@1.3.4':
|
||||
resolution: {integrity: sha512-nwHqdlRZS6GWBef3dG5/pMY6RNTBBUjj7s0Da+m6xsFpe7jx6IC46SLZcCu8f46JOfCovZmwnrz51EzGE+7Fyw==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/binding-linux-arm64-musl@1.2.18':
|
||||
resolution: {integrity: sha512-4oqWItLLYt7IceOnElCct8T2ek5p7PmD7LN04TRJRXGo5f3HtKTgGH6PhYRFK4C2ICkq/LMUU0BVPvvlAKhm8g==}
|
||||
'@rolldown/binding-linux-arm64-musl@1.3.4':
|
||||
resolution: {integrity: sha512-Gr78X2ur/AgLCkmZgHffk/FerIX8S5zb/eII4bCcvJo0ANzeXhTShahdNbpnY6bpiszIAgIfiuKS9ziziWsamw==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@rolldown/binding-linux-ppc64-gnu@1.2.18':
|
||||
resolution: {integrity: sha512-+AkRly5SrCEgnPhGRfub7pucASYEC2fTsxZg7VCcnozpA2+Wn/gCYy1t7LuJS67/xyJu/7noYBJncDUkbwgw2A==}
|
||||
'@rolldown/binding-linux-ppc64-gnu@1.3.4':
|
||||
resolution: {integrity: sha512-o9Wcn8nWrsQasaBRYM4d//FwhlBsTJYWkPVlhlt6FwzpwEoovY4IopRZjk5Fq3+ntRuSDORJjF/nA8sFeF2q6w==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [ppc64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/binding-linux-s390x-gnu@1.2.18':
|
||||
resolution: {integrity: sha512-Ttg1r9vVykMnQrE/GwYO9icKtXiuiMfRe/w74xJkeoVuvhRG+WtT6LEMOf58Yl63yd77lhHzO8Y55R8CC3XALA==}
|
||||
'@rolldown/binding-linux-s390x-gnu@1.3.4':
|
||||
resolution: {integrity: sha512-UDWu4jkVcx2kiBKm3Ec//4lVCbeTWj8gmJ9SyLWCdLWtTlyq7fQVeVV/14nXvRtSLErvJ2+yA/Ux5taS31Y17Q==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [s390x]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/binding-linux-x64-gnu@1.2.18':
|
||||
resolution: {integrity: sha512-xX1Tt4o5jUMma0vJsXp5eRZA9nOuyigb2dKJMMzZRmzMxLYGE9PaKKSqHPzPvSQgM8ZOEacSTQwDQcwWfh0xmQ==}
|
||||
'@rolldown/binding-linux-x64-gnu@1.3.4':
|
||||
resolution: {integrity: sha512-W9mGtTa0w4fWh8RLMNPyaEhhcuqUfO07Q4I1bBc4PDMNg7gQSw0yPQNQ3D0qwbkXwxbyL4YrIzc8n6k1vuFExQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/binding-linux-x64-musl@1.2.18':
|
||||
resolution: {integrity: sha512-4VVlGI5K2kociZlW3lSN8VjG3TW5yQIlAcfCdBXMgGjJxZll15Fa4ocRHXHvIVVnwlibCw/NQajJrNDiqqpiiw==}
|
||||
'@rolldown/binding-linux-x64-musl@1.3.4':
|
||||
resolution: {integrity: sha512-8B+ofyQZ7/aCmkqnyMonPr5zKLqMVNczhRGFNtdIuItiwNn8iQWJawMq2E58r7bxD1XEbtRRsULY/eCWwZQ01Q==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@rolldown/binding-openharmony-arm64@1.2.18':
|
||||
resolution: {integrity: sha512-PApTsgH1jLYuyy3tSCz9De82Gq5qXwi7vImVZhEzTgX1C4150Cp5M2ZfL3pLvbCvbEHL0oJeC6pd6podtv8Y5w==}
|
||||
'@rolldown/binding-openharmony-arm64@1.3.4':
|
||||
resolution: {integrity: sha512-TlD0FSZaC7o2B4NCe9V5N11ugTnhzTM9ksj4sgRLvrKosDzjEkvlsTX3ehkw4ZlPv8AADimZZTvJGEa16pfXug==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [openharmony]
|
||||
|
||||
'@rolldown/binding-w[email protected]':
|
||||
resolution: {integrity: sha512-J2XjWjx/SP+4x0H4r6dz3Vzb5WVkg7re40Do9K7HJ3sK2/xcmZrWwakXlSwaMvOkvruLJCD4CL/3wqsIR/thgg==}
|
||||
'@rolldown/binding-w[email protected]':
|
||||
resolution: {integrity: sha512-jwO8P3o53ygo7b5061B7BeaJ1BGv3BKZ6jroFdw/01qWry7Z+qNBlDvulzbTle5s/A0Fc1FRgsTxrke9DvsSbA==}
|
||||
engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}
|
||||
cpu: [wasm32]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-8adGMrNtrdzi2WD1ozhYapER59gD8Q/DV6SCKJlyG2HqULPdeQUBvMa33lTsiEYwIqTZUaIU2MmvPp5f1wbtXA==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [win32]
|
||||
|
||||
'@rolldown/binding-win32-x64-msvc@1.2.18':
|
||||
resolution: {integrity: sha512-XwRJxRQvkuEtS0hIIt29QrqPJ+JzMJSNYHJw4ae/mc6uEarfRG1ceyg4HmmWiBdL/YCb6g7N5BLbSvmRJRYZHw==}
|
||||
'@rolldown/binding-win32-x64-msvc@1.3.4':
|
||||
resolution: {integrity: sha512-rIMjtESdXJCIoOiUTroQ1Y1rjVDZkuUVRUxs3APX2vNv175D7TDWvzdELiIhzGq9cUNUFat+co+PTmPHPqSREg==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [win32]
|
||||
@@ -603,8 +614,8 @@ packages:
|
||||
vite: ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0
|
||||
vue: ^3.2.25 || ^3.6.0-rc.15
|
||||
|
||||
'@vitest/[email protected].1':
|
||||
resolution: {integrity: sha512-b2OgTB4+3ImWIVafXKazJXwLKwQxUNnix6b3xUvUTMh7RyXlrtzoxfZr8aEz9zkHOMAS4K5lu3TvFWoiVeVTQg==}
|
||||
'@vitest/[email protected].2':
|
||||
resolution: {integrity: sha512-UGc97wUIy0Ji2+9GxzHEJiOhiwkaukgE7VYcUNnjpX3sWnwQ8XogmNXX4WyOukxYgKb8Nh2XFa7KId0ZjpmVhQ==}
|
||||
peerDependencies:
|
||||
msw: ^2.4.9 || ^3.0.0
|
||||
vite: ^6.0.0 || ^7.0.0 || ^8.0.0
|
||||
@@ -614,8 +625,8 @@ packages:
|
||||
vite:
|
||||
optional: true
|
||||
|
||||
'@vitest/[email protected].1':
|
||||
resolution: {integrity: sha512-6K8C6alQG1/Yc8/ZI22iJS7JEsxPdVzqtqDq+/xM4Z0mGVykemMVjLhqMy/q6/IHYG3kKD8hKSwRen/ZdyI9vQ==}
|
||||
'@vitest/[email protected].2':
|
||||
resolution: {integrity: sha512-PQl0/3+p9GaY71+MHywN6oyHfLhVDD5kcbm7oNRldA2F0ExMU3S8RQdnpteJ9gFAdK5P6KCgE6LqCpUgy57KzA==}
|
||||
|
||||
'@volar/[email protected]':
|
||||
resolution: {integrity: sha512-73fjwEV8wat6aOZ6U/y/hqtE30ocrIWECg67b0txGczOMNw+MffLmvJ5fnFfN9drVUEYZzLdaNo6VAy6G6avMw==}
|
||||
@@ -651,30 +662,18 @@ packages:
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-k34nCytbK8PQ1gR2mGROYOw6Pnv/mumqIdrZ3x2tbyXZDWm7ViKGLTfdB+DRrWqEQsLgGJvn0WN9jBif5zCTLQ==}
|
||||
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-XGHJrM6ufZARAc/w+tyOswStw9tdKiqCKBScI4gGaNxD+aaGu/HQWgKJ+JItjRLPqenQ7iE7G8AJC7T5ew1p+g==}
|
||||
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-yb+N8/mgBcoeqCJPVyJI/D3OphLrSMXnB3ZQUNmRLU/1fsMW4bFfdJWNi9oIj7+EA3ULKKkP7b/VCpcYQYeiuQ==}
|
||||
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-W5AoBFWdw1lQAKiHowkfgFKFab82oSRT6sGsPfw/q1GRjsy/ZJFLHGhJyBRIFN9APLTUduDH9U2JAiPOIyKuYg==}
|
||||
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-LbP2d19GSOYGPmvMBBCVJVlv7TKtjM1Cfeyu3cYia720pknZP+1cLX7H5MVatvruT6MuJhiPuNbQBW/MDn/EwA==}
|
||||
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-Bj3lCSw3DQnDRDxw115XqdLDd0+18Nftlgd8OXSGG+ud74hxJIE17eYrM+VWgQrTMsvJbLh9Hzf2MkwAzru36Q==}
|
||||
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-MKFjb2UX0M/l/jhfzqMLrI8VM4pfvFKG3pqFZkSZFHRLtNld/O4RtUPZFWSwhro/14qP88UQEkWzHxAZAQ0tsw==}
|
||||
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-hjUvMxGh+QIgegwksfp6BRBYleE/a8veZHvTR6sa+o+bM4HU+WnrUZlhN0X+pDcsl8Lhwmbu72xPvLMk3XUwog==}
|
||||
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-RF5sbZOfYz5AK00tOJUn2PwFXR2fS1u2HVzI8D9VF9rGAFxuGBqg2bB1kJ3ZHMprqSltXnT9MZE1IsqjSM8oew==}
|
||||
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-qebChL3aP0m1k+TlSf+fZWvOwAf3flBCi5o+n01ykR3DX4mTIWheFltmoiQ12+z66/4cGeXqbB2P7sPWkGhQNQ==}
|
||||
|
||||
@@ -705,9 +704,6 @@ packages:
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-H82XLH0DjmSOdbEwO15x3QTo1f5PWEtv237eLpYKc0mqLu+B8hnq16lFWmuBmNurkeiG3wr+oM1FhOll/YVFRg==}
|
||||
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-ue9fgHmVNPlP7iW3+cxoBX/Cnlw53dHlVSw0JKGY6z1lObg8pHoj928M2nzG4/yVsMZ3NaRZ2s2z61uC16NDwQ==}
|
||||
|
||||
'@vue/[email protected]':
|
||||
resolution: {integrity: sha512-P1WePbdzHrcIciWtmY2Im9EFhdakd3rZxYqvalOa3SfoxtF35Q8Uhmj1tKn6bWP4utcOpN8ao6BoJUItq0Uf+g==}
|
||||
|
||||
@@ -1315,11 +1311,21 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-p3QA1y3s9L+FVrdjgtzOtG84A0x8mM7Z/hEjY2VkOsLWyjgsGZmXHNbnAtLjMDX4uDg9oTeGHj8E+siSs9WIfA==}
|
||||
engines: {node: '>=12'}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==}
|
||||
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
|
||||
hasBin: true
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-zHxhzKsIFu3elch3eFw69WEUGc79DFhbc3nD/WEOzWL/pFFLZRW13EHnuO0c+0YjncE5uCaS9ICHxOBXkb6vPw==}
|
||||
engines: {node: '>=20'}
|
||||
cpu: [x64, arm64]
|
||||
os: [win32]
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-df3sBr/6ax9hSGuC3CspvLlbnX8cP5L5nZwXF8cGN8l0zSWR6BvzmQ6jPUKjvo6+/xdpkNvEcucBNUdBeeV13g==}
|
||||
engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0}
|
||||
@@ -1401,6 +1407,10 @@ packages:
|
||||
resolution: {integrity: sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==}
|
||||
engines: {node: ^10 || ^12 || >=14}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-P1Qzj0XXZjMda74C7qiVnBG90UKNbyNUAOeQRBW8X63RsIMV57gevRqjnkELdwtZ/S2/uQFksJhmwuN8xShLPw==}
|
||||
engines: {node: ^10 || ^12 || >=14}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==}
|
||||
engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}
|
||||
@@ -1442,8 +1452,8 @@ packages:
|
||||
peerDependencies:
|
||||
vue: '>= 3.4.0'
|
||||
|
||||
rolldown@1.2.18:
|
||||
resolution: {integrity: sha512-C1uuT3UR60SShuCaPQFAAZyefJCWZlAKB02BV3BuPE2Rs4fevRQltEKoFO2tV5W9/eJhU5RieV6vJj3euulfNQ==}
|
||||
rolldown@1.3.4:
|
||||
resolution: {integrity: sha512-p2rq4bfBmF0M6yaR8+A89fbkBQynZI2fxUW4G07eq9kpctAkpo7q5BZ4X4Mo4XZ7HHROu33cX9PeopUFN6u+2Q==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
hasBin: true
|
||||
|
||||
@@ -1602,8 +1612,8 @@ packages:
|
||||
webpack:
|
||||
optional: true
|
||||
|
||||
vite@8.3.8:
|
||||
resolution: {integrity: sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==}
|
||||
vite@8.4.0:
|
||||
resolution: {integrity: sha512-X2nUJg+9cutlz3hzqyO6p+WTwk9H257DjwAEf9EQYUFrQbDItmetadi9gYmb+l7VDy4r3VXLUnmLTwuPmzejDw==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
@@ -1645,20 +1655,20 @@ packages:
|
||||
yaml:
|
||||
optional: true
|
||||
|
||||
[email protected].1:
|
||||
resolution: {integrity: sha512-trVmzUFOSraCZcI3uZIMD5FqBh4atFkC/XuJP/IU7qtyQay0FCs3Ia+0QiQ2JJwGyWG/xrcBoJNel2+O7kEZ0g==}
|
||||
[email protected].2:
|
||||
resolution: {integrity: sha512-VIa2wXV208WraXUbzH+dQUrGcFpPuaiRA8HlhXS8R6/sy9cynw6OMqGj8fmAlH1hot7huTCtWUE14+FdXU3eLw==}
|
||||
engines: {node: ^22.12.0 || ^24.0.0 || >=26.0.0}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
'@edge-runtime/vm': '*'
|
||||
'@opentelemetry/api': ^1.9.0
|
||||
'@types/node': ^22.0.0 || >=24.0.0
|
||||
'@vitest/browser-playwright': 5.1.1
|
||||
'@vitest/browser-preview': 5.1.1
|
||||
'@vitest/browser-playwright': 5.1.2
|
||||
'@vitest/browser-preview': 5.1.2
|
||||
'@vitest/browser-webdriverio': ^5.0.0-beta.5 || >=5.0.0
|
||||
'@vitest/coverage-istanbul': 5.1.1
|
||||
'@vitest/coverage-v8': 5.1.1
|
||||
'@vitest/ui': 5.1.1
|
||||
'@vitest/coverage-istanbul': 5.1.2
|
||||
'@vitest/coverage-v8': 5.1.2
|
||||
'@vitest/ui': 5.1.2
|
||||
happy-dom: '*'
|
||||
jsdom: '*'
|
||||
vite: ^6.4.0 || ^7.0.0 || ^8.0.0
|
||||
@@ -1705,14 +1715,14 @@ packages:
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-HwCqmgTfLFskQc4P5TRnbduCMyPat2Ezu0elLWOGn0dD/6BKHP15B5bxce6aDi+E4kblPtru8amIBQzu0Di3qQ==}
|
||||
|
||||
[email protected].1:
|
||||
resolution: {integrity: sha512-lUENd/QIhKd2HWACnXID3us0GWBnuOi3BwkTUzce2+4nfM/b3seV5saNURM9+wt48/qUxviotpcm7yFxC0U4qA==}
|
||||
[email protected].3:
|
||||
resolution: {integrity: sha512-F3uyE2siuOC8QLxR3YAdqtxTEgLM/+rc0Fvej7/DVo6YTY5RgLBQpm1+fYP26ITjD3Fg5rDWuzBKxIB6rjlt1w==}
|
||||
peerDependencies:
|
||||
'@pinia/colada': '>=0.21.2'
|
||||
'@vue/compiler-sfc': ^3.5.34 || ^4.0.0
|
||||
'@vue/compiler-sfc': ^3.5.34 || ^3.6.0-0 || ^4.0.0
|
||||
pinia: ^3.0.4 || ^4.0.2
|
||||
vite: ^7.3.0 || ^8.0.0
|
||||
vue: ^3.5.34 || ^4.0.0
|
||||
vue: ^3.5.34 || ^3.6.0-0 || ^4.0.0
|
||||
peerDependenciesMeta:
|
||||
'@pinia/colada':
|
||||
optional: true
|
||||
@@ -1965,9 +1975,9 @@ snapshots:
|
||||
|
||||
'@one-ini/[email protected]': {}
|
||||
|
||||
'@oxc-project/[email protected]56.0': {}
|
||||
'@oxc-project/[email protected]0.0': {}
|
||||
|
||||
'@perfect-design/ui@0.3.11([email protected](@vue/[email protected])([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))':
|
||||
'@perfect-design/ui@0.4.0([email protected](@vue/[email protected])([email protected])([email protected]([email protected])))([email protected])([email protected]([email protected]))':
|
||||
dependencies:
|
||||
pinia: 4.1.0(@vue/[email protected])([email protected])([email protected]([email protected]))
|
||||
reka-ui: 2.11.0([email protected]([email protected]))
|
||||
@@ -1975,49 +1985,54 @@ snapshots:
|
||||
tailwindcss: 4.3.5
|
||||
vue: 3.5.46([email protected])
|
||||
|
||||
'@rolldown/binding-android-arm-eabi@1.2.18':
|
||||
'@rolldown/binding-android-arm-eabi@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-android-arm64@1.2.18':
|
||||
'@rolldown/binding-android-arm64@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-darwin-arm64@1.2.18':
|
||||
'@rolldown/binding-darwin-arm64@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-darwin-x64@1.2.18':
|
||||
'@rolldown/binding-darwin-x64@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-freebsd-x64@1.2.18':
|
||||
'@rolldown/binding-freebsd-x64@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-arm-gnueabihf@1.2.18':
|
||||
'@rolldown/binding-linux-arm-gnueabihf@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-arm64-gnu@1.2.18':
|
||||
'@rolldown/binding-linux-arm64-gnu@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-arm64-musl@1.2.18':
|
||||
'@rolldown/binding-linux-arm64-musl@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-ppc64-gnu@1.2.18':
|
||||
'@rolldown/binding-linux-ppc64-gnu@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-s390x-gnu@1.2.18':
|
||||
'@rolldown/binding-linux-s390x-gnu@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-x64-gnu@1.2.18':
|
||||
'@rolldown/binding-linux-x64-gnu@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-linux-x64-musl@1.2.18':
|
||||
'@rolldown/binding-linux-x64-musl@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-openharmony-arm64@1.2.18':
|
||||
'@rolldown/binding-openharmony-arm64@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-w[email protected]':
|
||||
'@rolldown/binding-w[email protected]':
|
||||
dependencies:
|
||||
'@oxc-project/types': 0.160.0
|
||||
optional: true
|
||||
|
||||
'@rolldown/binding-win32-x64-msvc@1.2.18':
|
||||
'@rolldown/binding-win32-arm64-msvc@1.3.4':
|
||||
optional: true
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
optional: true
|
||||
|
||||
'@rolldown/[email protected]': {}
|
||||
@@ -2087,12 +2102,12 @@ snapshots:
|
||||
'@tailwindcss/oxide-win32-arm64-msvc': 4.3.5
|
||||
'@tailwindcss/oxide-win32-x64-msvc': 4.3.5
|
||||
|
||||
'@tailwindcss/[email protected](vite@8.3.8([email protected])([email protected]))':
|
||||
'@tailwindcss/[email protected](vite@8.4.0([email protected])([email protected]))':
|
||||
dependencies:
|
||||
'@tailwindcss/node': 4.3.5
|
||||
'@tailwindcss/oxide': 4.3.5
|
||||
tailwindcss: 4.3.5
|
||||
vite: 8.3.8([email protected])([email protected])
|
||||
vite: 8.4.0([email protected])([email protected])
|
||||
|
||||
'@tanstack/[email protected]': {}
|
||||
|
||||
@@ -2123,7 +2138,7 @@ snapshots:
|
||||
lz-string: 1.5.0
|
||||
pretty-format: 27.5.1
|
||||
|
||||
'@testing-library/[email protected](@testing-library/[email protected])([email protected].1([email protected])(vite@8.3.8([email protected])([email protected])))':
|
||||
'@testing-library/[email protected](@testing-library/[email protected])([email protected].2([email protected])(vite@8.4.0([email protected])([email protected])))':
|
||||
dependencies:
|
||||
'@adobe/css-tools': 4.4.4
|
||||
'@testing-library/dom': 10.4.2
|
||||
@@ -2133,16 +2148,16 @@ snapshots:
|
||||
picocolors: 1.1.1
|
||||
redent: 3.0.0
|
||||
optionalDependencies:
|
||||
vitest: 5.1.1([email protected])(vite@8.3.8([email protected])([email protected]))
|
||||
vitest: 5.1.2([email protected])(vite@8.4.0([email protected])([email protected]))
|
||||
|
||||
'@testing-library/[email protected](@vue/[email protected])(@vue/[email protected]5)(@vue/[email protected])([email protected]([email protected]))':
|
||||
'@testing-library/[email protected](@vue/[email protected])(@vue/[email protected]6)(@vue/[email protected])([email protected]([email protected]))':
|
||||
dependencies:
|
||||
'@babel/runtime': 7.28.4
|
||||
'@testing-library/dom': 9.3.4
|
||||
'@vue/test-utils': 2.6.0(@vue/[email protected])(@vue/[email protected])([email protected]([email protected]))
|
||||
vue: 3.5.46([email protected])
|
||||
optionalDependencies:
|
||||
'@vue/compiler-sfc': 3.5.45
|
||||
'@vue/compiler-sfc': 3.5.46
|
||||
transitivePeerDependencies:
|
||||
- '@vue/compiler-dom'
|
||||
- '@vue/server-renderer'
|
||||
@@ -2160,22 +2175,22 @@ snapshots:
|
||||
|
||||
'@types/[email protected]': {}
|
||||
|
||||
'@vitejs/[email protected](vite@8.3.8([email protected])([email protected]))([email protected]([email protected]))':
|
||||
'@vitejs/[email protected](vite@8.4.0([email protected])([email protected]))([email protected]([email protected]))':
|
||||
dependencies:
|
||||
'@rolldown/pluginutils': 1.0.1
|
||||
vite: 8.3.8([email protected])([email protected])
|
||||
vite: 8.4.0([email protected])([email protected])
|
||||
vue: 3.5.46([email protected])
|
||||
|
||||
'@vitest/[email protected].1(vite@8.3.8([email protected])([email protected]))':
|
||||
'@vitest/[email protected].2(vite@8.4.0([email protected])([email protected]))':
|
||||
dependencies:
|
||||
'@jridgewell/trace-mapping': 0.3.31
|
||||
'@vitest/spy': 5.1.1
|
||||
'@vitest/spy': 5.1.2
|
||||
estree-walker: 3.0.3
|
||||
magic-string: 1.4.5
|
||||
optionalDependencies:
|
||||
vite: 8.3.8([email protected])([email protected])
|
||||
vite: 8.4.0([email protected])([email protected])
|
||||
|
||||
'@vitest/[email protected].1': {}
|
||||
'@vitest/[email protected].2': {}
|
||||
|
||||
'@volar/[email protected]':
|
||||
dependencies:
|
||||
@@ -2203,7 +2218,7 @@ snapshots:
|
||||
|
||||
'@vue-macros/[email protected]([email protected]([email protected]))':
|
||||
dependencies:
|
||||
'@vue/compiler-sfc': 3.5.45
|
||||
'@vue/compiler-sfc': 3.5.46
|
||||
ast-kit: 2.2.0
|
||||
local-pkg: 1.2.1
|
||||
magic-string-ast: 1.0.3
|
||||
@@ -2219,14 +2234,6 @@ snapshots:
|
||||
estree-walker: 2.0.2
|
||||
source-map-js: 1.2.2
|
||||
|
||||
'@vue/[email protected]':
|
||||
dependencies:
|
||||
'@babel/parser': 7.29.13
|
||||
'@vue/shared': 3.5.45
|
||||
entities: 7.0.1
|
||||
estree-walker: 2.0.2
|
||||
source-map-js: 1.2.2
|
||||
|
||||
'@vue/[email protected]':
|
||||
dependencies:
|
||||
'@babel/parser': 7.29.13
|
||||
@@ -2240,28 +2247,11 @@ snapshots:
|
||||
'@vue/compiler-core': 3.5.44
|
||||
'@vue/shared': 3.5.44
|
||||
|
||||
'@vue/[email protected]':
|
||||
dependencies:
|
||||
'@vue/compiler-core': 3.5.45
|
||||
'@vue/shared': 3.5.45
|
||||
|
||||
'@vue/[email protected]':
|
||||
dependencies:
|
||||
'@vue/compiler-core': 3.5.46
|
||||
'@vue/shared': 3.5.46
|
||||
|
||||
'@vue/[email protected]':
|
||||
dependencies:
|
||||
'@babel/parser': 7.29.13
|
||||
'@vue/compiler-core': 3.5.45
|
||||
'@vue/compiler-dom': 3.5.45
|
||||
'@vue/compiler-ssr': 3.5.45
|
||||
'@vue/shared': 3.5.45
|
||||
estree-walker: 2.0.2
|
||||
magic-string: 0.30.21
|
||||
postcss: 8.5.32
|
||||
source-map-js: 1.2.2
|
||||
|
||||
'@vue/[email protected]':
|
||||
dependencies:
|
||||
'@babel/parser': 7.29.13
|
||||
@@ -2274,11 +2264,6 @@ snapshots:
|
||||
postcss: 8.5.32
|
||||
source-map-js: 1.2.4
|
||||
|
||||
'@vue/[email protected]':
|
||||
dependencies:
|
||||
'@vue/compiler-dom': 3.5.45
|
||||
'@vue/shared': 3.5.45
|
||||
|
||||
'@vue/[email protected]':
|
||||
dependencies:
|
||||
'@vue/compiler-dom': 3.5.46
|
||||
@@ -2331,8 +2316,6 @@ snapshots:
|
||||
|
||||
'@vue/[email protected]': {}
|
||||
|
||||
'@vue/[email protected]': {}
|
||||
|
||||
'@vue/[email protected]': {}
|
||||
|
||||
'@vue/[email protected](@vue/[email protected])(@vue/[email protected])([email protected]([email protected]))':
|
||||
@@ -2970,8 +2953,13 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
optional: true
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
abbrev: 5.0.0
|
||||
@@ -3051,6 +3039,12 @@ snapshots:
|
||||
picocolors: 1.1.1
|
||||
source-map-js: 1.2.2
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
nanoid: 3.3.20
|
||||
picocolors: 1.1.1
|
||||
source-map-js: 1.2.4
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
ansi-regex: 5.0.1
|
||||
@@ -3098,26 +3092,27 @@ snapshots:
|
||||
ohash: 2.0.11
|
||||
vue: 3.5.46([email protected])
|
||||
|
||||
rolldown@1.2.18:
|
||||
rolldown@1.3.4:
|
||||
dependencies:
|
||||
'@oxc-project/types': 0.156.0
|
||||
'@oxc-project/types': 0.160.0
|
||||
'@rolldown/pluginutils': 1.0.1
|
||||
optionalDependencies:
|
||||
'@rolldown/binding-android-arm-eabi': 1.2.18
|
||||
'@rolldown/binding-android-arm64': 1.2.18
|
||||
'@rolldown/binding-darwin-arm64': 1.2.18
|
||||
'@rolldown/binding-darwin-x64': 1.2.18
|
||||
'@rolldown/binding-freebsd-x64': 1.2.18
|
||||
'@rolldown/binding-linux-arm-gnueabihf': 1.2.18
|
||||
'@rolldown/binding-linux-arm64-gnu': 1.2.18
|
||||
'@rolldown/binding-linux-arm64-musl': 1.2.18
|
||||
'@rolldown/binding-linux-ppc64-gnu': 1.2.18
|
||||
'@rolldown/binding-linux-s390x-gnu': 1.2.18
|
||||
'@rolldown/binding-linux-x64-gnu': 1.2.18
|
||||
'@rolldown/binding-linux-x64-musl': 1.2.18
|
||||
'@rolldown/binding-openharmony-arm64': 1.2.18
|
||||
'@rolldown/binding-win32-arm64-msvc': 1.2.18
|
||||
'@rolldown/binding-win32-x64-msvc': 1.2.18
|
||||
'@rolldown/binding-android-arm-eabi': 1.3.4
|
||||
'@rolldown/binding-android-arm64': 1.3.4
|
||||
'@rolldown/binding-darwin-arm64': 1.3.4
|
||||
'@rolldown/binding-darwin-x64': 1.3.4
|
||||
'@rolldown/binding-freebsd-x64': 1.3.4
|
||||
'@rolldown/binding-linux-arm-gnueabihf': 1.3.4
|
||||
'@rolldown/binding-linux-arm64-gnu': 1.3.4
|
||||
'@rolldown/binding-linux-arm64-musl': 1.3.4
|
||||
'@rolldown/binding-linux-ppc64-gnu': 1.3.4
|
||||
'@rolldown/binding-linux-s390x-gnu': 1.3.4
|
||||
'@rolldown/binding-linux-x64-gnu': 1.3.4
|
||||
'@rolldown/binding-linux-x64-musl': 1.3.4
|
||||
'@rolldown/binding-openharmony-arm64': 1.3.4
|
||||
'@rolldown/binding-wasm32-wasi': 1.3.4
|
||||
'@rolldown/binding-win32-arm64-msvc': 1.3.4
|
||||
'@rolldown/binding-win32-x64-msvc': 1.3.4
|
||||
|
||||
[email protected]:
|
||||
dependencies:
|
||||
@@ -3238,7 +3233,7 @@ snapshots:
|
||||
pathe: 2.0.3
|
||||
picomatch: 4.0.7
|
||||
|
||||
[email protected]([email protected])(rolldown@1.2.18)(vite@8.3.8([email protected])([email protected])):
|
||||
[email protected]([email protected])(rolldown@1.3.4)(vite@8.4.0([email protected])([email protected])):
|
||||
dependencies:
|
||||
'@jridgewell/remapping': 2.3.5
|
||||
'@rolldown/pluginutils': 1.0.1
|
||||
@@ -3246,25 +3241,26 @@ snapshots:
|
||||
webpack-virtual-modules: 0.6.2
|
||||
optionalDependencies:
|
||||
esbuild: 0.28.2
|
||||
rolldown: 1.2.18
|
||||
vite: 8.3.8([email protected])([email protected])
|
||||
rolldown: 1.3.4
|
||||
vite: 8.4.0([email protected])([email protected])
|
||||
|
||||
vite@8.3.8([email protected])([email protected]):
|
||||
vite@8.4.0([email protected])([email protected]):
|
||||
dependencies:
|
||||
lightningcss: 1.33.0
|
||||
picomatch: 4.0.7
|
||||
postcss: 8.5.32
|
||||
rolldown: 1.2.18
|
||||
postcss: 8.5.34
|
||||
rolldown: 1.3.4
|
||||
tinyglobby: 0.2.17
|
||||
optionalDependencies:
|
||||
esbuild: 0.28.2
|
||||
fsevents: 2.3.3
|
||||
jiti: 2.7.0
|
||||
napi-windows-process-start-time: 0.1.0
|
||||
|
||||
[email protected].1([email protected])(vite@8.3.8([email protected])([email protected])):
|
||||
[email protected].2([email protected])(vite@8.4.0([email protected])([email protected])):
|
||||
dependencies:
|
||||
'@types/chai': 5.2.3
|
||||
'@vitest/mocker': 5.1.1(vite@8.3.8([email protected])([email protected]))
|
||||
'@vitest/mocker': 5.1.2(vite@8.4.0([email protected])([email protected]))
|
||||
chai: 6.3.0
|
||||
es-module-lexer: 2.3.2
|
||||
expect-type: 1.4.0
|
||||
@@ -3275,7 +3271,7 @@ snapshots:
|
||||
tinybench: 6.2.4
|
||||
tinyexec: 1.3.1
|
||||
tinyglobby: 0.2.17
|
||||
vite: 8.3.8([email protected])([email protected])
|
||||
vite: 8.4.0([email protected])([email protected])
|
||||
why-is-node-running: 3.2.1
|
||||
optionalDependencies:
|
||||
jsdom: 31.0.1
|
||||
@@ -3297,7 +3293,7 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected].1(@vue/[email protected]5)([email protected])([email protected](@vue/[email protected])([email protected])([email protected]([email protected])))(rolldown@1.2.18)(vite@8.3.8([email protected])([email protected]))([email protected]([email protected])):
|
||||
[email protected].3(@vue/[email protected]6)([email protected])([email protected](@vue/[email protected])([email protected])([email protected]([email protected])))(rolldown@1.3.4)(vite@8.4.0([email protected])([email protected]))([email protected]([email protected])):
|
||||
dependencies:
|
||||
'@vue-macros/common': 3.1.4([email protected]([email protected]))
|
||||
'@vue/devtools-api': 8.2.1
|
||||
@@ -3307,19 +3303,19 @@ snapshots:
|
||||
local-pkg: 2.0.0
|
||||
magic-string: 1.4.5
|
||||
mlly: 1.8.2
|
||||
muggle-string: 0.4.1
|
||||
muggle-string: 1.0.5
|
||||
nostics: 1.3.0
|
||||
pathe: 2.0.3
|
||||
picomatch: 4.0.7
|
||||
scule: 1.3.0
|
||||
tinyglobby: 0.2.17
|
||||
unplugin: 3.7.0([email protected])(rolldown@1.2.18)(vite@8.3.8([email protected])([email protected]))
|
||||
unplugin: 3.7.0([email protected])(rolldown@1.3.4)(vite@8.4.0([email protected])([email protected]))
|
||||
unplugin-utils: 0.3.2
|
||||
vue: 3.5.46([email protected])
|
||||
optionalDependencies:
|
||||
'@vue/compiler-sfc': 3.5.45
|
||||
'@vue/compiler-sfc': 3.5.46
|
||||
pinia: 4.1.0(@vue/[email protected])([email protected])([email protected]([email protected]))
|
||||
vite: 8.3.8([email protected])([email protected])
|
||||
vite: 8.4.0([email protected])([email protected])
|
||||
transitivePeerDependencies:
|
||||
- '@farmfe/core'
|
||||
- '@rsbuild/core'
|
||||
|
||||
@@ -3,10 +3,10 @@ module github.com/lukaszraczylo/gohoarder
|
||||
go 1.26.0
|
||||
|
||||
require (
|
||||
github.com/aws/aws-sdk-go-v2 v1.48.0
|
||||
github.com/aws/aws-sdk-go-v2/config v1.33.21
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.21.3
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.116.0
|
||||
github.com/aws/aws-sdk-go-v2 v1.48.1
|
||||
github.com/aws/aws-sdk-go-v2/config v1.33.22
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.21.4
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.116.1
|
||||
github.com/cloudsoda/go-smb2 v0.0.0-20261105190815-95be04a983b8
|
||||
github.com/go-gormigrate/gormigrate/v2 v2.1.7
|
||||
github.com/go-sql-driver/mysql v1.10.2
|
||||
@@ -37,19 +37,19 @@ require (
|
||||
filippo.io/edwards25519 v1.2.0 // indirect
|
||||
github.com/Azure/go-ansiterm v0.0.0-20261006220739-8c912ac31dd4 // indirect
|
||||
github.com/Microsoft/go-winio v0.6.4 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.27 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.9 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.12 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.12 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.12 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.25 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.13 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.12 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.12 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/signin v1.14.0 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.39.5 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.5 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.53.0 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.28 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.10 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.13 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.13 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.13 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.26 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.14 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.13 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.13 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/signin v1.14.1 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.39.6 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.6 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.53.1 // indirect
|
||||
github.com/aws/smithy-go v1.28.10 // indirect
|
||||
github.com/beorn7/perks v1.0.1 // indirect
|
||||
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
|
||||
|
||||
@@ -8,40 +8,40 @@ github.com/Azure/go-ansiterm v0.0.0-20261006220739-8c912ac31dd4 h1:m2xcjRABtG288
|
||||
github.com/Azure/go-ansiterm v0.0.0-20261006220739-8c912ac31dd4/go.mod h1:MTUE7ZuZO89FAtAwozGg6AWD83pcdefnEq5gF82MB8s=
|
||||
github.com/Microsoft/go-winio v0.6.4 h1:kJF2pamtYCWXf0xAT8sAkwKC0pMl2HYBrRPHAqyUc+g=
|
||||
github.com/Microsoft/go-winio v0.6.4/go.mod h1:1xl5JXG4ze/m74GH6Dc4Mwxfc3VL5siRVQjIAlHH07U=
|
||||
github.com/aws/aws-sdk-go-v2 v1.48.0 h1:tFU7EJVm7MfyaXLsXdYTZ0Vd6vwt9OljCyqq0gqk0Mc=
|
||||
github.com/aws/aws-sdk-go-v2 v1.48.0/go.mod h1:oeKU5p+TQBnpeLmU42WZLWvzv+ORLn+74n4QVLnm/Z0=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.27 h1:3dMP9eEmHVosFN1QiD24IJBKVY8m6iUfVYXqRCT118Q=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.27/go.mod h1:KH4PKcqtjy1m0656eqQV2v53xE04ddJzuNloEKqlHkI=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.33.21 h1:NY1d3yXmplUSYnUAue0sR88svD+SJiaI+YJGp8TxSNg=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.33.21/go.mod h1:pVJNXUXaCLu9a/4/liTklg9zR3yO0xm/XBEQhgg5nzc=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.21.3 h1:bh+9VoJ4eDzJVEY6jfdNTBa0Dx7tdr+lWSPNovU1vXc=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.21.3/go.mod h1:4CNs0EBvjDEpyaXSYCdNeNRhFjHFX2Y373tFUaeTYXA=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.9 h1:oH1E0tjN0g+ZRusbX1dsuat4FJ0z05l8hWaycSbDuNc=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.9/go.mod h1:3ZaQGigIoaS45x9HgnLZ4sP475Fs7QoxU3IsZX/J3h4=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.12 h1:W0yUUzKBA8SofGQ0yZafEUuZq9UxfvijRgdc6vcRQPA=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.12/go.mod h1:xwKv6vwBNdpPFOxEm/ld4IODZK2s/1ksHvdBqLfH6Gs=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.12 h1:lqSi8qvAnKC1vfosImdmOsuiJLr/jdybZX5299beB6Q=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.12/go.mod h1:rqPQE2vqkW9YHx5+Gp55sx1wsTM4xtGQLl+TKMjxxrs=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.12 h1:uvX2yaL+aMjkmnrLPPlR/zwjoKFRMoNhhJfeGjfk6qc=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.12/go.mod h1:dicT+2eNhHHqGkxHO7LoXw3QghIUGuzgdmFqaSTopgI=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.25 h1:rKwkY3Z+fvt2W0msjdNs6uNewPmXzPayQ961oyuWhes=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.25/go.mod h1:dBuAadQKd1F4Q4ZOg8gnFmuSHMRE40Pe3IfFwbtC4lE=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.13 h1:U5HZ8FpTr6tyvulf1nT11Nw4KG1CAsXkuQGdUrIjZ/E=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.13/go.mod h1:dUfvCU1NaE+b3vqNENDiJncUQW7Djl5pmgUlcjesVqk=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.12 h1:wzAqMZ2O4+ij9HQqIrk+P9PBGacE0wOTuWB7Mo97//I=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.12/go.mod h1:/0TfyruByHsOlphzP26xDTRe2DKD0J1I1Uyy2TyP8EI=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.12 h1:H0IaQayT3TLiGIHiNnleQZTbndDlx7LGZ0NWZ5mDwjA=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.12/go.mod h1:YuJJNxaOjnknLIrscBmkLhIpnmg9LzHd25sQRKUboGU=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.116.0 h1:0/glEMW6lLpeGOq7tDKn3314ookbLSvzRs71Oknt6gA=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.116.0/go.mod h1:8NhAIBVYkVHq0hIbbzujdoou0VkKwMdG+De9e5oX6qI=
|
||||
github.com/aws/aws-sdk-go-v2/service/signin v1.14.0 h1:bIEk1HfTd3MGzvDa5YOQUodGr96D9+UTnmBLBB8ZJ10=
|
||||
github.com/aws/aws-sdk-go-v2/service/signin v1.14.0/go.mod h1:LdwHjKqPE9VCC7sTlWcOAizZx3ZJYjmfwC/EW2tIIAE=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.39.5 h1:ANAoa+qt3/9kXnvQVgUyxcTzhzZf4DqaBS+M2DQrELU=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.39.5/go.mod h1:vsMi+SSR7xGQXtV430LVi49qbv/R+U+upHHSp1W/+QI=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.5 h1:uIOBLMhef4N16WguadoHKuBy9etdz+RKTeqzchXErAI=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.5/go.mod h1:NwWmkFLtsTVyXQpbzPOlYLwEoANkdCFjJRtrNcbg/vY=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.53.0 h1:my9Y6lxcqvPV5k4OTqnxr8XbiTDDRos1leEh050Z93U=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.53.0/go.mod h1:MG6N8U9+lY4LqchrlHPqCOSr7hyxw70XU0Et2YR3eNA=
|
||||
github.com/aws/aws-sdk-go-v2 v1.48.1 h1:j6ro6IvbxUe8BCulc/6uWMrhmx6+i5HNIc1GZEJRT9k=
|
||||
github.com/aws/aws-sdk-go-v2 v1.48.1/go.mod h1:HP8Jzg1FDurJomtx40YM0eiLoJrwjjZ9X+4BNpy4OXc=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.28 h1:/LppjvqoI0KYB6gDrG/b77okSNPrVJI7CJtK5ITYoZ0=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.28/go.mod h1:E7HQl8N3fZeO2DT1X3xSleOe+gG0O2k7nMgrKWDCfHw=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.33.22 h1:U4aevm9PINYwCsHE6WFmL2aCxtMM1XaB05v2nRAJzoI=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.33.22/go.mod h1:TJpEQoPJXqnD4j4X6II6o5HQdFSuIYBkGpqtNTyyp90=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.21.4 h1:FWXJfHDIHV4r5GfgOqvkr+4EddYMT9ZRzIemxwoiPzg=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.21.4/go.mod h1:1+m37dCFDT1N/gqK2/qJcRfDF7j7/MEDZqf2fzr40XU=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.10 h1:EwVFH5FBnAzlLhJUtQkKMPDd/8D3duH3jka/Hy6wEdE=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.10/go.mod h1:ACoxGTUf7GMfdWPLWl81qBELG9pSsaAIuJ6C8aqXuTk=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.13 h1:ZFqKPVQYSIYOXVoG/YRGXYNPqcGslzu/N2J3kev/Djc=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.13/go.mod h1:3guCF5FBy7MYWRVt7+gdRxPPTSIBQnImwEVW5BdnOCE=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.13 h1:0pHWAgLjLZWSc9GtdpMVFT7bvpUcm9xZYcaJ9bmyLGo=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.13/go.mod h1:yVcS5ysT0fDsQKA6mqaI5QU1p9q5bj7NyM4bu91yNmU=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.13 h1:a6vUTTG7Vsf0LTCuy/GPJsLhz3L6YcS1WkwR5Nxyz8g=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.13/go.mod h1:vlylLTRubgSLfSBOy7blRhV2CC1nVY1VDIgV5nlKi5Y=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.26 h1:PgkTkbD4VhN7KX1fQXiNMsSZqPnEfXmi+UuISMDEuy8=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.26/go.mod h1:s/8QtHBYqNVL+E6bD1yltZrmEo+I4S1bt2kQDxP54sY=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.14 h1:xZolVZk8AKg8m9Axl7IZreaUEOrFmomgaXjWzpiAiWM=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.14/go.mod h1:BbYaE19KUZA0gxBjw3uWWz2v7wMgpxfi1OPLB26Ktw0=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.13 h1:D67JeihKdQFL5Zks8rFmf0V0sOZO+iAOjQUW03O3R2E=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.13/go.mod h1:lyzwhnQkZD/SVyTZAG8TqE2XSLRndMZtysOl9KM3ErA=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.13 h1:MJaFheEZeJDd2qGObzRjsCdDTvRzApb6EqwZ5yBHzwE=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.13/go.mod h1:BH0PWDkM/i0ewpxH5g6tELXxzS933YZ3Q/PTGWc8+9c=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.116.1 h1:qFQ1JjNGG8fdKBFNdQ641PXCaPdDulXlIpk3kntgqb0=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.116.1/go.mod h1:VRFKxGYoQGYL9sQM49YVbB8TlgRnBkfqURzqesn06jA=
|
||||
github.com/aws/aws-sdk-go-v2/service/signin v1.14.1 h1:fHgVyc6g4vSYuPplgTrvCWaQQCb63y8tzUrM/6aAVzI=
|
||||
github.com/aws/aws-sdk-go-v2/service/signin v1.14.1/go.mod h1:TEJD9nnHHeraoOHbJyiQhHKnb1G6ViEqfcR3b9m8Vws=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.39.6 h1:9MWBzvq9u5G2USGms+OXYD9sERXyK1zqP6LBrsysvXU=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.39.6/go.mod h1:nwq3fSE8NuXW0+jEzc0YFBzA1vlMq6o7t2UZJJky+EQ=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.6 h1:BNTt0xfMtfLF3/YpcPCPioL2EvDzSnECxIAYuaBAKF0=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.6/go.mod h1:9IiNXZPnSBSF0bKM9dHRzLEb49IqSPh0voOhp7KVmkg=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.53.1 h1:v6vt91IoL7PWx0TjIETO5IWtjAVQqOZ3oKUus6XykLY=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.53.1/go.mod h1:HeFBzksjwXSkhBvH20Yp2xdgn+e3lHRiVACMMr0mzOU=
|
||||
github.com/aws/smithy-go v1.28.10 h1:SfPnj8fGCVAI/P5YC4/1JjuMsucbPp2dROnSTYNo2PE=
|
||||
github.com/aws/smithy-go v1.28.10/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc=
|
||||
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
|
||||
|
||||
@@ -184,6 +184,7 @@ type SecurityConfig struct {
|
||||
RescanConcurrency int `mapstructure:"rescan_concurrency" json:"rescan_concurrency"` // scans run in parallel per rescan cycle; <1 = 1
|
||||
ScanRetryInterval time.Duration `mapstructure:"scan_retry_interval" json:"scan_retry_interval"` // wait before retrying a scan that failed on infrastructure; 0 = 5m
|
||||
ScanWaitTimeout time.Duration `mapstructure:"scan_wait_timeout" json:"scan_wait_timeout"` // how long a first download waits for its scan; 0 = 30s
|
||||
MinFreeBytes int64 `mapstructure:"min_free_bytes" json:"min_free_bytes"` // defer scans while the temp dir has less free space; 0 = off
|
||||
FailClosed bool `mapstructure:"fail_closed" json:"fail_closed"` // refuse packages whose scan failed on infrastructure
|
||||
Enabled bool `mapstructure:"enabled" json:"enabled"`
|
||||
ScanOnDownload bool `mapstructure:"scan_on_download" json:"scan_on_download"`
|
||||
@@ -236,8 +237,9 @@ type StaticConfig struct {
|
||||
|
||||
// GrypeConfig contains Grype scanner configuration
|
||||
type GrypeConfig struct {
|
||||
Enabled bool `mapstructure:"enabled" json:"enabled"`
|
||||
Timeout time.Duration `mapstructure:"timeout" json:"timeout"`
|
||||
Enabled bool `mapstructure:"enabled" json:"enabled"`
|
||||
Timeout time.Duration `mapstructure:"timeout" json:"timeout"`
|
||||
DBUpdateInterval time.Duration `mapstructure:"db_update_interval" json:"db_update_interval"` // must stay under grype's 120h max database age; 0 = 6h
|
||||
}
|
||||
|
||||
// GovulncheckConfig contains govulncheck scanner configuration
|
||||
@@ -424,8 +426,9 @@ func Default() *Config {
|
||||
BlockSuspicious: false,
|
||||
},
|
||||
Grype: GrypeConfig{
|
||||
Enabled: false,
|
||||
Timeout: 5 * time.Minute,
|
||||
Enabled: false,
|
||||
Timeout: 5 * time.Minute,
|
||||
DBUpdateInterval: 6 * time.Hour,
|
||||
},
|
||||
Govulncheck: GovulncheckConfig{
|
||||
Enabled: false,
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
package scanner
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/lukaszraczylo/gohoarder/pkg/config"
|
||||
"github.com/lukaszraczylo/gohoarder/pkg/metadata"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
type diskProbeScanner struct {
|
||||
stubScanner
|
||||
calls int
|
||||
}
|
||||
|
||||
func (c *diskProbeScanner) Scan(ctx context.Context, registry, packageName, version, path string) (*metadata.ScanResult, error) {
|
||||
c.calls++
|
||||
return c.stubScanner.Scan(ctx, registry, packageName, version, path)
|
||||
}
|
||||
|
||||
func diskGuardManager(t *testing.T, minFree int64, free uint64, freeErr error) (*Manager, *stubMetadataStore, *diskProbeScanner) {
|
||||
t.Helper()
|
||||
store := &stubMetadataStore{}
|
||||
mgr, err := New(config.SecurityConfig{Enabled: true, MinFreeBytes: minFree, ScanRetryInterval: time.Hour}, store)
|
||||
require.NoError(t, err)
|
||||
t.Cleanup(mgr.Stop)
|
||||
mgr.freeBytes = func(string) (uint64, error) { return free, freeErr }
|
||||
s := &diskProbeScanner{stubScanner: *stubResult("trivy", metadata.ScanStatusClean, nil)}
|
||||
mgr.RegisterScanner(s)
|
||||
return mgr, store, s
|
||||
}
|
||||
|
||||
func TestScanIsDeferredWhenDiskIsLow(t *testing.T) {
|
||||
mgr, store, s := diskGuardManager(t, 1<<30, 1<<20, nil)
|
||||
|
||||
require.NoError(t, mgr.ScanPackage(context.Background(), "npm", "left-pad", "1.0.0", "/tmp/x"))
|
||||
|
||||
assert.Zero(t, s.calls, "no scanner may run on a full disk")
|
||||
require.Len(t, store.savedResults, 1)
|
||||
assert.Equal(t, metadata.ScanStatusError, store.savedResults[0].Status)
|
||||
assert.Equal(t, true, store.savedResults[0].Details[DetailInfrastructureError], "low disk is retried, not blamed on the package")
|
||||
}
|
||||
|
||||
func TestScanRunsWhenDiskHasRoom(t *testing.T) {
|
||||
mgr, store, s := diskGuardManager(t, 1<<30, 2<<30, nil)
|
||||
|
||||
require.NoError(t, mgr.ScanPackage(context.Background(), "npm", "left-pad", "1.0.0", "/tmp/x"))
|
||||
|
||||
assert.Equal(t, 1, s.calls)
|
||||
require.Len(t, store.savedResults, 1)
|
||||
assert.Equal(t, metadata.ScanStatusClean, store.savedResults[0].Status)
|
||||
}
|
||||
|
||||
func TestDiskGuardOffByDefault(t *testing.T) {
|
||||
mgr, _, s := diskGuardManager(t, 0, 0, nil)
|
||||
|
||||
require.NoError(t, mgr.ScanPackage(context.Background(), "npm", "left-pad", "1.0.0", "/tmp/x"))
|
||||
|
||||
assert.Equal(t, 1, s.calls)
|
||||
}
|
||||
|
||||
func TestDiskGuardMeasurementFailureDoesNotBlockScans(t *testing.T) {
|
||||
mgr, _, s := diskGuardManager(t, 1<<30, 0, errors.New("statfs failed"))
|
||||
|
||||
require.NoError(t, mgr.ScanPackage(context.Background(), "npm", "left-pad", "1.0.0", "/tmp/x"))
|
||||
|
||||
assert.Equal(t, 1, s.calls)
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package scanner
|
||||
|
||||
import (
|
||||
stderrors "errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"syscall"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
var errLowDiskSpace = stderrors.New("not enough free disk space to scan")
|
||||
|
||||
// checkDiskSpace refuses a scan while the temp dir, where scanners unpack packages, is short
|
||||
// of space. A failed measurement never blocks scans.
|
||||
func (m *Manager) checkDiskSpace() error {
|
||||
if m.config.MinFreeBytes <= 0 || m.freeBytes == nil {
|
||||
return nil
|
||||
}
|
||||
dir := os.TempDir()
|
||||
free, err := m.freeBytes(dir)
|
||||
if err != nil {
|
||||
log.Warn().Err(err).Str("dir", dir).Msg("Cannot measure free disk space")
|
||||
return nil
|
||||
}
|
||||
if need := uint64(m.config.MinFreeBytes); free < need {
|
||||
return fmt.Errorf("%w: %d bytes free in %s, need %d", errLowDiskSpace, free, dir, need)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func diskFree(path string) (uint64, error) {
|
||||
var st syscall.Statfs_t
|
||||
if err := syscall.Statfs(path, &st); err != nil {
|
||||
return 0, fmt.Errorf("statfs %s: %w", path, err)
|
||||
}
|
||||
return st.Bavail * uint64(st.Bsize), nil // #nosec G115 -- block size is never negative
|
||||
}
|
||||
@@ -83,14 +83,21 @@ func (s *Scanner) Scan(ctx context.Context, registry, packageName, version strin
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create temp dir: %w", err)
|
||||
}
|
||||
defer func() { _ = os.RemoveAll(tmpDir) }()
|
||||
defer func() {
|
||||
if rmErr := os.RemoveAll(tmpDir); rmErr != nil {
|
||||
log.Warn().Err(rmErr).Str("scanner", ScannerName).Str("dir", tmpDir).Msg("Cannot remove scan directory")
|
||||
}
|
||||
}()
|
||||
|
||||
// govulncheck never reports advisories against the main module of the tree it scans, so
|
||||
// scanning the module's own source reports a vulnerable module clean. The module is
|
||||
// scanned as a dependency of a wrapper module instead, and the wrapper imports its
|
||||
// packages because module-mode scanning only considers modules that provide an import.
|
||||
// Resolving the module reaches the module proxy.
|
||||
env := append(os.Environ(), "GOFLAGS=-mod=mod", "GOTOOLCHAIN=local", "GOWORK=off")
|
||||
// The dependency tree goes to a module cache inside tmpDir, so the scan keeps nothing on disk;
|
||||
// -modcacherw leaves that cache writable, or RemoveAll cannot delete it.
|
||||
env := append(os.Environ(), "GOFLAGS=-mod=mod -modcacherw", "GOTOOLCHAIN=local", "GOWORK=off",
|
||||
"GOMODCACHE="+filepath.Join(tmpDir, "modcache"))
|
||||
goMod := fmt.Sprintf("module gohoarder.audit\n\nrequire %s %s\n", module, version)
|
||||
if err = os.WriteFile(filepath.Join(tmpDir, "go.mod"), []byte(goMod), 0o600); err != nil {
|
||||
return nil, fmt.Errorf("failed to write go.mod: %w", err)
|
||||
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/lukaszraczylo/gohoarder/pkg/config"
|
||||
@@ -132,7 +133,7 @@ func TestScanAuditsTheModuleItself(t *testing.T) {
|
||||
|
||||
env, err := os.ReadFile(filepath.Join(rec, "env")) // #nosec G304 -- test temp dir
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, "-mod=mod|local\n", string(env))
|
||||
assert.Equal(t, "-mod=mod -modcacherw|local\n", string(env))
|
||||
|
||||
assert.Equal(t, []string{"-json", "-scan", "module"}, scannertest.Args(t, args))
|
||||
|
||||
@@ -144,6 +145,32 @@ func TestScanAuditsTheModuleItself(t *testing.T) {
|
||||
assert.NotContains(t, imports, "/internal", "internal packages cannot be imported")
|
||||
}
|
||||
|
||||
func TestScanRemovesTheModulesItDownloaded(t *testing.T) {
|
||||
rec := t.TempDir()
|
||||
// Like go, the fake leaves the module cache read-only unless GOFLAGS has -modcacherw.
|
||||
scannertest.Script(t, "go", fmt.Sprintf(`
|
||||
[ -n "$GOMODCACHE" ] || exit 1
|
||||
mkdir -p "$GOMODCACHE/example.com/[email protected]"
|
||||
touch "$GOMODCACHE/example.com/[email protected]/dep.go"
|
||||
case "$GOFLAGS" in *-modcacherw*) ;; *) chmod 0555 "$GOMODCACHE/example.com/[email protected]" ;; esac
|
||||
echo "$GOMODCACHE" > %q/go
|
||||
echo "github.com/google/uuid uuid 12 0 "`, rec))
|
||||
scannertest.Script(t, "govulncheck", fmt.Sprintf(`
|
||||
echo "$GOMODCACHE" > %q/govulncheck
|
||||
cat %q`, rec, abs(t, "google-uuid-v1.6.0.stream")))
|
||||
|
||||
res, err := New(config.GovulncheckConfig{}).Scan(context.Background(), "go", "github.com/google/uuid/@v/v1.6.0.zip", "v1.6.0", module(t))
|
||||
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, metadata.ScanStatusClean, res.Status)
|
||||
listCache, err := os.ReadFile(filepath.Join(rec, "go")) // #nosec G304 -- test temp dir
|
||||
require.NoError(t, err)
|
||||
scanCache, err := os.ReadFile(filepath.Join(rec, "govulncheck")) // #nosec G304 -- test temp dir
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, string(listCache), string(scanCache), "govulncheck reads the modules go list downloaded")
|
||||
assert.NoDirExists(t, strings.TrimSpace(string(listCache)), "the scan keeps no downloaded modules")
|
||||
}
|
||||
|
||||
func TestScanCleanModule(t *testing.T) {
|
||||
scannertest.Script(t, "go", `echo "github.com/google/uuid uuid 12 0 "`)
|
||||
_, _ = fakeGovulncheck(t, abs(t, "google-uuid-v1.6.0.stream"), 0, "")
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
package grype
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"io/fs"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
const (
|
||||
defaultDBUpdateInterval = 6 * time.Hour
|
||||
// grype's own limits are 30s for the update check and 5m for the download.
|
||||
dbUpdateTimeout = 10 * time.Minute
|
||||
// Far past dbUpdateTimeout, so only a download whose grype process died is removed.
|
||||
abandonedAfter = time.Hour
|
||||
|
||||
downloadPrefix = "grype-db-download"
|
||||
// go-getter, which grype downloads through, stages the archive in the temp dir.
|
||||
getterPrefix = "getter"
|
||||
)
|
||||
|
||||
// RefreshDatabase updates the database every interval until stop closes. immediate runs
|
||||
// the first update at once; otherwise it waits one interval. interval 0 means 6h.
|
||||
func (s *Scanner) RefreshDatabase(stop <-chan struct{}, interval time.Duration, immediate bool) {
|
||||
if interval <= 0 {
|
||||
interval = defaultDBUpdateInterval
|
||||
}
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
go func() {
|
||||
<-stop
|
||||
cancel()
|
||||
}()
|
||||
|
||||
if immediate {
|
||||
s.refreshOnce(ctx)
|
||||
}
|
||||
ticker := time.NewTicker(interval)
|
||||
defer ticker.Stop()
|
||||
for {
|
||||
select {
|
||||
case <-ticker.C:
|
||||
s.refreshOnce(ctx)
|
||||
case <-ctx.Done():
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Scanner) refreshOnce(ctx context.Context) {
|
||||
if err := s.UpdateDatabase(ctx); err != nil {
|
||||
log.Error().Err(err).Str("scanner", ScannerName).Msg("Scheduled Grype database update failed")
|
||||
}
|
||||
}
|
||||
|
||||
// dbCacheDir mirrors grype's db.cache-dir default and its GRYPE_DB_CACHE_DIR override.
|
||||
func dbCacheDir() (string, error) {
|
||||
if dir := os.Getenv("GRYPE_DB_CACHE_DIR"); dir != "" {
|
||||
return dir, nil
|
||||
}
|
||||
home, err := os.UserHomeDir()
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return filepath.Join(home, ".cache", "grype", "db"), nil
|
||||
}
|
||||
|
||||
// removeAbandonedDownloads deletes database downloads last touched before cutoff. A grype
|
||||
// process killed mid-download never removes its staging dirs.
|
||||
func removeAbandonedDownloads(cutoff time.Time) {
|
||||
if dir, err := dbCacheDir(); err != nil {
|
||||
log.Warn().Err(err).Str("scanner", ScannerName).Msg("Cannot locate the Grype database cache")
|
||||
} else {
|
||||
removeStaleDirs(dir, downloadPrefix, cutoff)
|
||||
}
|
||||
removeStaleDirs(os.TempDir(), getterPrefix, cutoff)
|
||||
}
|
||||
|
||||
func removeStaleDirs(dir, prefix string, cutoff time.Time) {
|
||||
entries, err := os.ReadDir(dir)
|
||||
if err != nil {
|
||||
if !errors.Is(err, fs.ErrNotExist) {
|
||||
log.Warn().Err(err).Str("dir", dir).Msg("Cannot list dir for abandoned Grype downloads")
|
||||
}
|
||||
return
|
||||
}
|
||||
for _, e := range entries {
|
||||
if !e.IsDir() || !strings.HasPrefix(e.Name(), prefix) {
|
||||
continue
|
||||
}
|
||||
info, err := e.Info()
|
||||
if err != nil || !info.ModTime().Before(cutoff) {
|
||||
continue
|
||||
}
|
||||
path := filepath.Join(dir, e.Name())
|
||||
if err := os.RemoveAll(path); err != nil {
|
||||
log.Warn().Err(err).Str("path", path).Msg("Cannot remove abandoned Grype download")
|
||||
continue
|
||||
}
|
||||
log.Info().Str("path", path).Msg("Removed abandoned Grype download")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
package grype
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/lukaszraczylo/gohoarder/pkg/config"
|
||||
"github.com/lukaszraczylo/gohoarder/pkg/scanner/scannertest"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestScanDisablesDatabaseAutoUpdate(t *testing.T) {
|
||||
envFile := filepath.Join(t.TempDir(), "env")
|
||||
fix, err := filepath.Abs(fixture("purl-minimist-0.0.8.json"))
|
||||
require.NoError(t, err)
|
||||
scannertest.Script(t, "grype", "printf '%s' \"$GRYPE_DB_AUTO_UPDATE\" > '"+envFile+"'\ncat '"+fix+"'")
|
||||
|
||||
_, err = New(config.GrypeConfig{}).Scan(context.Background(), "npm", "minimist", "0.0.8", "/tmp/artifact")
|
||||
|
||||
require.NoError(t, err)
|
||||
got, err := os.ReadFile(envFile) // #nosec G304 -- test temp file
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, "false", string(got), "a scan must never download the database itself")
|
||||
}
|
||||
|
||||
func mkdirAged(t *testing.T, path string, age time.Duration) {
|
||||
t.Helper()
|
||||
require.NoError(t, os.MkdirAll(path, 0o750))
|
||||
require.NoError(t, os.WriteFile(filepath.Join(path, "archive"), []byte("x"), 0o600))
|
||||
when := time.Now().Add(-age)
|
||||
require.NoError(t, os.Chtimes(path, when, when))
|
||||
}
|
||||
|
||||
func TestUpdateDatabaseRemovesAbandonedDownloads(t *testing.T) {
|
||||
cacheDir, tmpDir := t.TempDir(), t.TempDir()
|
||||
t.Setenv("GRYPE_DB_CACHE_DIR", cacheDir)
|
||||
t.Setenv("TMPDIR", tmpDir)
|
||||
scannertest.Fake(t, "grype", "", "", 0)
|
||||
|
||||
mkdirAged(t, filepath.Join(cacheDir, "grype-db-download111"), 2*time.Hour)
|
||||
mkdirAged(t, filepath.Join(cacheDir, "grype-db-download222"), time.Minute)
|
||||
mkdirAged(t, filepath.Join(cacheDir, "6"), 48*time.Hour)
|
||||
mkdirAged(t, filepath.Join(tmpDir, "getter333"), 2*time.Hour)
|
||||
mkdirAged(t, filepath.Join(tmpDir, "getter444"), time.Minute)
|
||||
mkdirAged(t, filepath.Join(tmpDir, "npm-audit-555"), 2*time.Hour)
|
||||
|
||||
require.NoError(t, New(config.GrypeConfig{}).UpdateDatabase(context.Background()))
|
||||
|
||||
assert.NoDirExists(t, filepath.Join(cacheDir, "grype-db-download111"))
|
||||
assert.NoDirExists(t, filepath.Join(tmpDir, "getter333"))
|
||||
assert.DirExists(t, filepath.Join(cacheDir, "grype-db-download222"), "a download in progress stays")
|
||||
assert.DirExists(t, filepath.Join(tmpDir, "getter444"), "a download in progress stays")
|
||||
assert.DirExists(t, filepath.Join(cacheDir, "6"), "the live database stays")
|
||||
assert.DirExists(t, filepath.Join(tmpDir, "npm-audit-555"), "other tools' temp dirs stay")
|
||||
}
|
||||
|
||||
func TestUpdateDatabaseNeverOverlaps(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
lock, overlap := filepath.Join(dir, "lock"), filepath.Join(dir, "overlap")
|
||||
scannertest.Script(t, "grype",
|
||||
"mkdir '"+lock+"' 2>/dev/null || echo x >> '"+overlap+"'\nsleep 0.2\nrmdir '"+lock+"' 2>/dev/null\nexit 0")
|
||||
s := New(config.GrypeConfig{})
|
||||
|
||||
done := make(chan error, 4)
|
||||
for range 4 {
|
||||
go func() { done <- s.UpdateDatabase(context.Background()) }()
|
||||
}
|
||||
for range 4 {
|
||||
require.NoError(t, <-done)
|
||||
}
|
||||
|
||||
assert.NoFileExists(t, overlap, "two database downloads ran at once")
|
||||
}
|
||||
|
||||
func TestUpdateDatabaseOutlivesCallerCancel(t *testing.T) {
|
||||
marker := filepath.Join(t.TempDir(), "finished")
|
||||
scannertest.Script(t, "grype", "sleep 0.3\ntouch '"+marker+"'")
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 50*time.Millisecond)
|
||||
defer cancel()
|
||||
|
||||
_ = New(config.GrypeConfig{}).UpdateDatabase(ctx)
|
||||
|
||||
assert.FileExists(t, marker, "a cancelled caller must not kill the download half way")
|
||||
}
|
||||
|
||||
func TestRefreshDatabaseRunsOnInterval(t *testing.T) {
|
||||
calls := filepath.Join(t.TempDir(), "calls")
|
||||
scannertest.Script(t, "grype", "echo \"$1 $2\" >> '"+calls+"'")
|
||||
stop := make(chan struct{})
|
||||
exited := make(chan struct{})
|
||||
|
||||
go func() {
|
||||
New(config.GrypeConfig{}).RefreshDatabase(stop, 20*time.Millisecond, true)
|
||||
close(exited)
|
||||
}()
|
||||
|
||||
require.Eventually(t, func() bool {
|
||||
data, _ := os.ReadFile(calls) // #nosec G304 -- test temp file
|
||||
return strings.Count(string(data), "db update\n") >= 3
|
||||
}, 5*time.Second, 10*time.Millisecond)
|
||||
close(stop)
|
||||
select {
|
||||
case <-exited:
|
||||
case <-time.After(2 * time.Second):
|
||||
t.Fatal("refresh loop did not stop")
|
||||
}
|
||||
}
|
||||
@@ -7,8 +7,10 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/lukaszraczylo/gohoarder/pkg/config"
|
||||
@@ -26,6 +28,7 @@ const ScannerName = "grype"
|
||||
type Scanner struct {
|
||||
version scanver.Cache
|
||||
config config.GrypeConfig
|
||||
dbMu sync.Mutex
|
||||
}
|
||||
|
||||
// New creates a new Grype scanner
|
||||
@@ -54,6 +57,8 @@ func (s *Scanner) Scan(ctx context.Context, registry, packageName, version strin
|
||||
target = filePath
|
||||
}
|
||||
cmd := exec.CommandContext(ctx, "grype", target, "-o", "json", "-q") // #nosec G204 -- target is a purl or the stored artifact path
|
||||
// Concurrent scans each downloading the database filled the disk; RefreshDatabase owns updates.
|
||||
cmd.Env = append(os.Environ(), "GRYPE_DB_AUTO_UPDATE=false")
|
||||
var stderr bytes.Buffer
|
||||
cmd.Stderr = &stderr
|
||||
output, err := cmd.Output()
|
||||
@@ -116,10 +121,17 @@ func (s *Scanner) Health(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// UpdateDatabase updates Grype's vulnerability database
|
||||
// UpdateDatabase updates Grype's vulnerability database. Calls are serialised, and the
|
||||
// download outlives a cancelled ctx so it never leaves a half-written database behind.
|
||||
func (s *Scanner) UpdateDatabase(ctx context.Context) error {
|
||||
log.Info().Str("scanner", ScannerName).Msg("Updating Grype database")
|
||||
s.dbMu.Lock()
|
||||
defer s.dbMu.Unlock()
|
||||
|
||||
log.Info().Str("scanner", ScannerName).Msg("Updating Grype database")
|
||||
removeAbandonedDownloads(time.Now().Add(-abandonedAfter))
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.WithoutCancel(ctx), dbUpdateTimeout)
|
||||
defer cancel()
|
||||
cmd := exec.CommandContext(ctx, "grype", "db", "update")
|
||||
output, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
|
||||
+18
-2
@@ -99,6 +99,8 @@ type Manager struct {
|
||||
broadcaster events.Broadcaster
|
||||
retryTimers map[string]*time.Timer
|
||||
fileSource FileSource
|
||||
freeBytes func(path string) (uint64, error)
|
||||
stopCh chan struct{}
|
||||
inflight map[string]int
|
||||
scanners []Scanner
|
||||
config config.SecurityConfig
|
||||
@@ -113,10 +115,13 @@ func (m *Manager) Enabled() bool {
|
||||
return m.enabled
|
||||
}
|
||||
|
||||
// Stop cancels pending scan retries.
|
||||
// Stop cancels pending scan retries and background database refreshes.
|
||||
func (m *Manager) Stop() {
|
||||
m.stateMu.Lock()
|
||||
defer m.stateMu.Unlock()
|
||||
if !m.stopped && m.stopCh != nil {
|
||||
close(m.stopCh)
|
||||
}
|
||||
m.stopped = true
|
||||
for key, timer := range m.retryTimers {
|
||||
timer.Stop()
|
||||
@@ -212,6 +217,8 @@ func New(cfg config.SecurityConfig, metadataStore metadata.MetadataStore) (*Mana
|
||||
metadataStore: metadataStore,
|
||||
retryTimers: make(map[string]*time.Timer),
|
||||
inflight: make(map[string]int),
|
||||
freeBytes: diskFree,
|
||||
stopCh: make(chan struct{}),
|
||||
}
|
||||
|
||||
if !cfg.Enabled {
|
||||
@@ -252,6 +259,8 @@ func New(cfg config.SecurityConfig, metadataStore metadata.MetadataStore) (*Mana
|
||||
log.Warn().Err(err).Msg("Failed to update Grype database on startup")
|
||||
}
|
||||
}
|
||||
// Scans never update the database, so without this loop it ages past grype's limit.
|
||||
go grypeScanner.RefreshDatabase(manager.stopCh, cfg.Scanners.Grype.DBUpdateInterval, !cfg.UpdateDBOnStartup)
|
||||
}
|
||||
|
||||
// Initialize govulncheck scanner
|
||||
@@ -324,7 +333,14 @@ func (m *Manager) scan(ctx context.Context, registry, packageName, version strin
|
||||
scannerNames := make([]string, 0)
|
||||
var infraFailures, otherFailures int
|
||||
|
||||
for _, scanner := range m.scanners {
|
||||
scanners := m.scanners
|
||||
if err := m.checkDiskSpace(); err != nil {
|
||||
log.Warn().Err(err).Str("package", packageName).Msg("Deferring security scan")
|
||||
infraFailures++
|
||||
scanners = nil
|
||||
}
|
||||
|
||||
for _, scanner := range scanners {
|
||||
// Skip scanners that don't support this registry
|
||||
if !m.shouldRunScanner(scanner.Name(), registry) {
|
||||
log.Debug().
|
||||
|
||||
Reference in New Issue
Block a user