Skip to content

Pass full options hashes from component.add_source#89

Merged
Sharpie merged 1 commit into
OpenVoxProject:mainfrom
Sharpie:pass-options-for-secondary-sources
May 9, 2026
Merged

Pass full options hashes from component.add_source#89
Sharpie merged 1 commit into
OpenVoxProject:mainfrom
Sharpie:pass-options-for-secondary-sources

Conversation

@Sharpie
Copy link
Copy Markdown
Member

@Sharpie Sharpie commented May 9, 2026

Prior to this commit, the add_source method of the would accept any number of keyword arguments, but silently ignored any that were not ref or sum. The Git and Http sources accept many options, critically sum_type which allows checksums other than MD5 to be used.

This commit updates the logic in lib/vanagon/component.rb to ensure all options are passed to the source constructor.

Short description

Checklist

I have:

  • read the CONTRIBUTING.md document
  • read and accepted the Developer Certificate of Origin document and added a Signed-off-by annotation to each of my commits
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@Sharpie Sharpie force-pushed the pass-options-for-secondary-sources branch from 771a526 to c018457 Compare May 9, 2026 14:30
Prior to this commit, the `add_source` method of the would accept any
number of keyword arguments, but silently ignored any that were not
`ref` or `sum`. The Git and Http sources accept many options, critically
`sum_type` which allows checksums other than MD5 to be used.

This commit updates the logic in `lib/vanagon/component.rb` to ensure
all options are passed to the source constructor.

Signed-off-by: Charlie Sharpsteen <charlie@overlookinfratech.com>
@Sharpie Sharpie force-pushed the pass-options-for-secondary-sources branch from c018457 to 07d1ce5 Compare May 9, 2026 14:33
@Sharpie Sharpie merged commit 60fe704 into OpenVoxProject:main May 9, 2026
7 checks passed
@Sharpie Sharpie deleted the pass-options-for-secondary-sources branch May 9, 2026 20:05
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

Successfully merging this pull request may close these issues.

3 participants