Skip to content

Use packages in overrides directory#235

Merged
dantedelucia merged 1 commit into
mainfrom
kit-519-add-the-ability-to-use-a-directory-to-specify-deb-overrides
Aug 19, 2025
Merged

Use packages in overrides directory#235
dantedelucia merged 1 commit into
mainfrom
kit-519-add-the-ability-to-use-a-directory-to-specify-deb-overrides

Conversation

@dantedelucia
Copy link
Copy Markdown
Contributor

Simple override directory implementation. Not sure if we want to add it as an explicit config option.

@linear
Copy link
Copy Markdown

linear Bot commented Aug 13, 2025

Copy link
Copy Markdown
Contributor

@alexanderguy alexanderguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this up. I left some notes.

Comment thread pkg/runner/deb/package.go Outdated
Comment thread pkg/runner/deb/package.go Outdated
Comment thread pkg/runner/deb/package.go Outdated
@dantedelucia dantedelucia force-pushed the kit-519-add-the-ability-to-use-a-directory-to-specify-deb-overrides branch from f9e3c47 to 7f4c81d Compare August 15, 2025 09:54
Comment thread pkg/runner/deb/packageconfig.go Outdated
Comment thread pkg/runner/deb/packageconfig.go Outdated
Comment thread pkg/runner/deb/packageconfig.go Outdated
Comment thread pkg/runner/deb/packageconfig.go Outdated
@dantedelucia dantedelucia force-pushed the kit-519-add-the-ability-to-use-a-directory-to-specify-deb-overrides branch 2 times, most recently from d8f0fae to e1a3918 Compare August 16, 2025 12:23
Copy link
Copy Markdown
Contributor

@alexanderguy alexanderguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left another round of notes. While you're in there, please add a unit test as well, so that you can double check all of your logic/how things are layered. Please make the test:

  • Verify that packages that have explicitly overridden in Override aren't clobbered by OverrideDir.
  • What happens when the directory doesn't exist.
  • Check for duplicate packages.
  • It shouldn't error if a package isn't in the override directory.

Comment thread pkg/runner/deb/packageconfig.go Outdated
Comment thread pkg/runner/deb/packageconfig.go Outdated
Comment thread pkg/runner/deb/packageconfig.go Outdated
Comment thread pkg/runner/deb/packageconfig.go Outdated
Comment thread pkg/runner/deb/packageconfig.go Outdated
@dantedelucia dantedelucia force-pushed the kit-519-add-the-ability-to-use-a-directory-to-specify-deb-overrides branch from e1a3918 to 1472dcb Compare August 17, 2025 19:55
@dantedelucia dantedelucia force-pushed the kit-519-add-the-ability-to-use-a-directory-to-specify-deb-overrides branch 3 times, most recently from f393e24 to dc659f3 Compare August 18, 2025 16:53
Copy link
Copy Markdown
Contributor

@alexanderguy alexanderguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting that up. Much improved; just some notes.

Comment thread pkg/runner/deb/packageconfig.go Outdated
Comment thread pkg/runner/deb/packageconfig_test.go Outdated
Comment thread pkg/runner/deb/packageconfig_test.go Outdated
Comment thread pkg/runner/deb/packageconfig_test.go Outdated
Comment thread pkg/runner/deb/packageconfig_test.go
@dantedelucia dantedelucia force-pushed the kit-519-add-the-ability-to-use-a-directory-to-specify-deb-overrides branch 2 times, most recently from ecfb953 to 7e1154b Compare August 18, 2025 18:05
This allows you to specify a directory that contains
local packages you wish to use, instead of the packages
that are available from the apt repositories.  These
can be provided per SVMKit component, alongside the
existing package override mechanism.
@dantedelucia dantedelucia force-pushed the kit-519-add-the-ability-to-use-a-directory-to-specify-deb-overrides branch from 7e1154b to 48d4e62 Compare August 18, 2025 18:14
Copy link
Copy Markdown
Contributor

@alexanderguy alexanderguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dantedelucia dantedelucia merged commit 0d6e8c2 into main Aug 19, 2025
1 check passed
@dantedelucia dantedelucia deleted the kit-519-add-the-ability-to-use-a-directory-to-specify-deb-overrides branch August 19, 2025 14:16
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.

2 participants