Skip to content

Commit

Permalink
fix(conan): allow include_prerelease without argument
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoerner-festo committed Jan 10, 2024
1 parent c700630 commit 1b281f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/modules/manager/conan/__fixtures__/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Pkg(ConanFile):
requires = (("req_c/1.0@user/stable", "private"), )
requires = ("req_f/1.0@user/stable", ("req_h/3.0@other/beta", "override"))
requires = "req_g/[>1.0 <1.8]@user/stable"
requires = "req_z/[>1.0 <1.8, include_prerelease]@user/stable"
# requires = "commentedout/[>1.0 <1.8]@user/stable"
# requires = "commentedout2/[>1.0 <1.8]@user/stable"
requires = (("req_l/1.0@user/stable#bc592346b33fd19c1fbffce25d1e4236", "private"), )
Expand Down
7 changes: 7 additions & 0 deletions lib/modules/manager/conan/extract.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,13 @@ describe('modules/manager/conan/extract', () => {
packageName: 'req_g/[>1.0 <1.8]@user/stable',
replaceString: 'req_g/[>1.0 <1.8]@user/stable',
},
{
currentValue: '[>1.0 <1.8, include_prerelease]',
depName: 'req_z',
depType: 'requires',
packageName: 'req_z/[>1.0 <1.8, include_prerelease]@user/stable',
replaceString: 'req_z/[>1.0 <1.8, include_prerelease]@user/stable',
},
{
autoReplaceStringTemplate:
'{{depName}}/{{newValue}}@user/stable{{#if newDigest}}#{{newDigest}}{{/if}}',
Expand Down

0 comments on commit 1b281f1

Please sign in to comment.