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

Set SemverCompatible to false for Conan packages #21275

Merged
merged 9 commits into from
Oct 7, 2022

Conversation

KN4CK3R
Copy link
Member

@KN4CK3R KN4CK3R commented Sep 27, 2022

Fixes #21250
Related #20414

Conan packages don't have to follow SemVer.
The migration fixes the setting for all existing Conan and Generic (#20414) packages.

@wxiaoguang
Copy link
Contributor

I have a question, is it necessary to report errors and show 500 when the package version can not be parsed for SemverCompatible=true? 500 error seems not friendly to user, and they can not even delete the package.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 28, 2022
@KN4CK3R
Copy link
Member Author

KN4CK3R commented Sep 30, 2022 via email

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Sep 30, 2022
Co-authored-by: delvh <dev.lh@web.de>
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 3, 2022
@wxiaoguang wxiaoguang linked an issue Oct 5, 2022 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

Merging #21275 (b88ea07) into main (ed255fd) will increase coverage by 0.35%.
The diff coverage is 41.21%.

@@            Coverage Diff             @@
##             main   #21275      +/-   ##
==========================================
+ Coverage   47.15%   47.51%   +0.35%     
==========================================
  Files        1017     1017              
  Lines      138125   138599     +474     
==========================================
+ Hits        65136    65853     +717     
+ Misses      65043    64754     -289     
- Partials     7946     7992      +46     
Impacted Files Coverage Δ
cmd/web.go 0.00% <0.00%> (ø)
models/issues/issue.go 53.22% <0.00%> (-0.98%) ⬇️
modules/markup/markdown/markdown.go 61.63% <ø> (+9.43%) ⬆️
modules/markup/markdown/math/inline_parser.go 9.52% <0.00%> (-2.73%) ⬇️
modules/markup/orgmode/orgmode.go 52.88% <ø> (ø)
modules/setting/lfs.go 65.71% <0.00%> (ø)
modules/structs/repo.go 76.92% <ø> (ø)
routers/private/internal.go 77.35% <0.00%> (-8.06%) ⬇️
routers/web/repo/setting.go 16.71% <0.00%> (-0.16%) ⬇️
routers/web/user/notification.go 15.69% <0.00%> (-20.23%) ⬇️
... and 58 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@wxiaoguang wxiaoguang merged commit 30ca916 into go-gitea:main Oct 7, 2022
@wxiaoguang
Copy link
Contributor

Merged, please send backport ~

@KN4CK3R KN4CK3R deleted the fix-21250 branch October 7, 2022 09:53
KN4CK3R added a commit to KN4CK3R/gitea that referenced this pull request Oct 7, 2022
Fixes go-gitea#21250
Related go-gitea#20414

Conan packages don't have to follow SemVer.
The migration fixes the setting for all existing Conan and Generic
(go-gitea#20414) packages.
zjjhot added a commit to zjjhot/gitea that referenced this pull request Oct 8, 2022
* upstream/main: (34 commits)
  Fix formatted link for PR review notifications to matrix (go-gitea#21319)
  Show private data in feeds (go-gitea#21369)
  Add nicer error handling on template compile errors (go-gitea#21350)
  Fix some typos and update db transaction demo in backend guideline (go-gitea#21322)
  Refactor parseTreeEntries, speed up tree list (go-gitea#21368)
  Add GET and DELETE endpoints for Docker blob uploads (go-gitea#21367)
  Make external issue tracker regexp configurable via API (go-gitea#21338)
  Add new CSS variables --color-accent and --color-small-accent (go-gitea#21305)
  Set SemverCompatible to false for Conan packages (go-gitea#21275)
  Parse OAuth Authorization header when request omits client secret (go-gitea#21351)
  Disable Firefox E2E tests (go-gitea#21363)
  Add redirect of /upgrade/ to /upgrade-from-gitea/ on docs site (go-gitea#21330)
  Update to go-enry v2.8.3 (go-gitea#21360)
  Update go to 1.19 (go-gitea#21361)
  SessionUser protection against nil pointer dereference (go-gitea#21358)
  Fix and improve incorrect error messages (go-gitea#21342)
  Fix default theme-auto selector when nologin (go-gitea#21346)
  Add `stat` to `ToCommit` function for speed (go-gitea#21337)
  Fix typo in API comment document (go-gitea#21347)
  Update comment about repository.DISABLED_REPO_UNITS in app.example.ini (go-gitea#21343)
  ...
lunny pushed a commit that referenced this pull request Oct 10, 2022
@6543 6543 added the backport/done All backports for this PR have been created label Oct 15, 2022
tyroneyeh pushed a commit to tyroneyeh/gitea that referenced this pull request Oct 24, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/packages type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conan package malformed version Error 500 if upload non SemVers Conan packages
8 participants