-
Notifications
You must be signed in to change notification settings - Fork 95
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
fix: correctly handle local environment value pass-through #158
Conversation
Confirmed that this works (once #154 is cherry-picked into the PR branch) in my testing. |
Rebased on |
The tests can be added here: |
The existing e2e tests expect the local env value is missing in the result. https://github.com/runfinch/common-tests/blame/main/tests/run.go#L130 So this may be a feat instead of fix as this is an expected unimplemented feature based on e2e tests, assuming e2e tests can be the workaround to check if one behaviour is expected given the situation where we don't have unimplement feature documentation. |
That test passes even though the core nerdctl problem (of Of course, the other test framework issue is that to really test the exact behavior you need -eVAR1 where VAR1 is unset in the environment and -eVAR2 where VAR2 is set in the environment. I will update this PR with a modification in the test to validate both variations as that is the correct behavior from both Docker, and now nerdctl, since v1.1.0.
This seems like an expectation that the e2e tests are based on concrete list of known functionality (versus just how nerdctl worked when the test was written). I'm OK if we would rather call this a feature, but I don't think the e2e tests are the defacto standard on specific capabilities that were inadvertently broken at the time. |
This adds proper tests for the changes to handling of `-e`/`--env` and `--env-file` in runfinch/finch#158 Signed-off-by: Phil Estes <[email protected]> Issue #, if available: *Description of changes:* *Testing done:* - [x] I've reviewed the guidance in CONTRIBUTING.md #### License Acceptance By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Signed-off-by: Phil Estes <[email protected]>
Released the new version of common-tests. You can bump the version of common-tests and use it in this PR. https://github.com/runfinch/common-tests/releases |
Updated common-tests; ran locally to verify e2e tests:
|
@estesp Thanks. Could you please also add unit tests? #158 (comment)
|
@ningziwen added unit tests; testing env-file gets a bit messy as we need an input file to get coverage over the file reading/parsing code blocks. Please advise if you want to use another way other than tmpfile creation. Also had to break it out of the test table as the flag name won't be known until the tmpfile is created. |
c2568cb
to
2e831b0
Compare
cc41a71
to
afeb600
Compare
Signed-off-by: Phil Estes <[email protected]>
The -e,--env flag as well as values within an --env-file can contain only a variable name with no "={VALUE}" portion. These entries provide a shorthand to say "pass the existing environment value of this variable into the container". Because of the VM boundary we need to extrapolate these values on the Finch side and pass them as discrete values into the Lima VM on the nerdctl command line. Also the file referenced by --env-file may not be accessible inside the VM, so we translate each entry in the file into -e entries on the command line rather than fail on the VM side, unable to locate the file being referenced. Signed-off-by: Phil Estes <[email protected]>
## Summary PR fixes #158 (comment). Besides that, it also adds a new test case, namely `"with --env-file flag, but the specified file does not exist"`, which becomes easier to add after the refactoring. ## Notes `gosec` is removed from `//nolint:errcheck,gosec` because `gosec` checks things like `os.Open` but not `fs.Open`, where `fs` is of type `afero.Fs`. Updated the `noling` comment accordingly. ## License Acceptance By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Signed-off-by: Hsing-Yu (David) Chen <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [0.4.0](v0.3.0...v0.4.0) (2023-02-13) ### ⚠ BREAKING CHANGES * persists nerdctl user data ([#182](#182)) ### Features * adds a --force flag to vm stop and remove ([#178](#178)) ([d499a7d](d499a7d)) * Support special IP host-gateway in --add-host flag ([#216](#216)) ([9a38c8e](9a38c8e)) ### Bug Fixes * correctly handle local environment value pass-through ([#158](#158)) ([e138f10](e138f10)) * persists nerdctl user data ([#182](#182)) ([59f372c](59f372c)) * persists network user data ([#211](#211)) ([f6baf82](f6baf82)) ### Build System or External Dependencies * **deps:** Bump github.com/google/go-licenses from 1.5.0 to 1.6.0 ([#168](#168)) ([bb5674c](bb5674c)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.7.0 to 2.7.1 ([#193](#193)) ([7aaa381](7aaa381)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.7.1 to 2.8.0 ([#200](#200)) ([596ed33](596ed33)) * **deps:** Bump github.com/onsi/gomega from 1.25.0 to 1.26.0 ([#183](#183)) ([12661b7](12661b7)) * **deps:** Bump golang.org/x/tools from 0.5.0 to 0.6.0 ([#215](#215)) ([decf250](decf250)) * **deps:** Bump k8s.io/apimachinery from 0.26.0 to 0.26.1 ([#174](#174)) ([829b0bc](829b0bc)) * make finch-core a submodule instead of downloading archives ([#188](#188)) ([b08f588](b08f588)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [0.5.0](v0.4.1...v0.5.0) (2023-03-20) ### ⚠ BREAKING CHANGES * persists nerdctl user data ([runfinch#182](https://github.com/vsiravar/finch-public/issues/182)) * changes persistent disk path to prevent collisions ### Features * add `finch cp` command ([runfinch#135](https://github.com/vsiravar/finch-public/issues/135)) ([5989361](5989361)) * add `finch vm status` command ([runfinch#83](https://github.com/vsiravar/finch-public/issues/83)) ([37d74d0](37d74d0)) * add config to support additional directories ([runfinch#128](https://github.com/vsiravar/finch-public/issues/128)) ([0ceb060](0ceb060)) * adds a --force flag to vm stop and remove ([runfinch#178](https://github.com/vsiravar/finch-public/issues/178)) ([d499a7d](d499a7d)) * Play with semver and revert ([#46](#46)) ([2299e1e](2299e1e)) * Print version with Client and Server ([runfinch#108](https://github.com/vsiravar/finch-public/issues/108)) ([7f7cdda](7f7cdda)) * saves containerd user data to a persistent disk ([runfinch#133](https://github.com/vsiravar/finch-public/issues/133)) ([fccb4f3](fccb4f3)) * Support special IP host-gateway in --add-host flag ([runfinch#216](https://github.com/vsiravar/finch-public/issues/216)) ([9a38c8e](9a38c8e)) ### Bug Fixes * changes persistent disk path to prevent collisions ([3eb66a2](3eb66a2)) * Configure Buildkit Namespace as Env Variable ([runfinch#129](https://github.com/vsiravar/finch-public/issues/129)) ([ffb90be](ffb90be)) * correctly handle local environment value pass-through ([runfinch#158](https://github.com/vsiravar/finch-public/issues/158)) ([e138f10](e138f10)) * error readable by using the right placeholder ([#39](#39)) ([8e5f38d](8e5f38d)) * fix the misleading log when applying invalid config ([runfinch#119](https://github.com/vsiravar/finch-public/issues/119)) ([b4f74c5](b4f74c5)) * ignore .ssh pub keys ([runfinch#109](https://github.com/vsiravar/finch-public/issues/109)) ([0b74597](0b74597)) * parse --add-host special ip with equal sign ([runfinch#229](https://github.com/vsiravar/finch-public/issues/229)) ([fb4b62b](fb4b62b)) * persists nerdctl user data ([runfinch#182](https://github.com/vsiravar/finch-public/issues/182)) ([59f372c](59f372c)) * persists network user data ([runfinch#211](https://github.com/vsiravar/finch-public/issues/211)) ([f6baf82](f6baf82)) * print debug logs after newline ([runfinch#273](https://github.com/vsiravar/finch-public/issues/273)) ([8faa7de](8faa7de)) * print debug logs when lima disk command fails ([runfinch#270](https://github.com/vsiravar/finch-public/issues/270)) ([78a3f50](78a3f50)) * switch from rootless containers to rootful containers ([runfinch#232](https://github.com/vsiravar/finch-public/issues/232)) ([ae43a07](ae43a07)) ### Build System or External Dependencies * clean up finch-core _output directory in clean target ([runfinch#290](https://github.com/vsiravar/finch-public/issues/290)) ([4684a95](4684a95)) * **deps:** bump finch-core to 0.1.1 ([runfinch#93](https://github.com/vsiravar/finch-public/issues/93)) ([3f3bce5](3f3bce5)) * **deps:** Bump github.com/containerd/containerd from 1.6.14 to 1.6.18 ([runfinch#223](https://github.com/vsiravar/finch-public/issues/223)) ([7480222](7480222)) * **deps:** Bump github.com/google/go-licenses from 1.5.0 to 1.6.0 ([runfinch#168](https://github.com/vsiravar/finch-public/issues/168)) ([bb5674c](bb5674c)) * **deps:** Bump github.com/lima-vm/lima from 0.12.0 to 0.13.0 ([#40](#40)) ([520cc7f](520cc7f)) * **deps:** Bump github.com/lima-vm/lima from 0.13.0 to 0.14.0 ([runfinch#113](https://github.com/vsiravar/finch-public/issues/113)) ([9b275bc](9b275bc)) * **deps:** Bump github.com/lima-vm/lima from 0.14.0 to 0.14.1 ([runfinch#120](https://github.com/vsiravar/finch-public/issues/120)) ([9dea794](9dea794)) * **deps:** Bump github.com/lima-vm/lima from 0.14.1 to 0.14.2 ([runfinch#130](https://github.com/vsiravar/finch-public/issues/130)) ([26b7b09](26b7b09)) * **deps:** bump github.com/lima-vm/lima from 0.14.2 to 0.15.0 ([runfinch#247](https://github.com/vsiravar/finch-public/issues/247)) ([007081e](007081e)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.5.0 to 2.5.1 ([#50](#50)) ([fa108fd](fa108fd)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.5.1 to 2.6.0 ([runfinch#114](https://github.com/vsiravar/finch-public/issues/114)) ([934521c](934521c)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.6.0 to 2.6.1 ([runfinch#121](https://github.com/vsiravar/finch-public/issues/121)) ([becbc44](becbc44)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.7.0 to 2.7.1 ([runfinch#193](https://github.com/vsiravar/finch-public/issues/193)) ([7aaa381](7aaa381)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.7.1 to 2.8.0 ([runfinch#200](https://github.com/vsiravar/finch-public/issues/200)) ([596ed33](596ed33)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.8.0 to 2.8.3 ([runfinch#233](https://github.com/vsiravar/finch-public/issues/233)) ([1185372](1185372)) * **deps:** bump github.com/onsi/ginkgo/v2 from 2.8.3 to 2.8.4 ([runfinch#245](https://github.com/vsiravar/finch-public/issues/245)) ([5e64716](5e64716)) * **deps:** bump github.com/onsi/ginkgo/v2 from 2.8.4 to 2.9.0 ([runfinch#265](https://github.com/vsiravar/finch-public/issues/265)) ([7e2d49e](7e2d49e)) * **deps:** bump github.com/onsi/ginkgo/v2 from 2.9.0 to 2.9.1 ([runfinch#285](https://github.com/vsiravar/finch-public/issues/285)) ([d741a03](d741a03)) * **deps:** Bump github.com/onsi/gomega from 1.24.1 to 1.24.2 ([runfinch#122](https://github.com/vsiravar/finch-public/issues/122)) ([d8174ff](d8174ff)) * **deps:** Bump github.com/onsi/gomega from 1.24.2 to 1.25.0 ([runfinch#165](https://github.com/vsiravar/finch-public/issues/165)) ([e4b9e96](e4b9e96)) * **deps:** Bump github.com/onsi/gomega from 1.25.0 to 1.26.0 ([runfinch#183](https://github.com/vsiravar/finch-public/issues/183)) ([12661b7](12661b7)) * **deps:** Bump github.com/onsi/gomega from 1.26.0 to 1.27.1 ([runfinch#234](https://github.com/vsiravar/finch-public/issues/234)) ([cd43781](cd43781)) * **deps:** bump github.com/onsi/gomega from 1.27.1 to 1.27.2 ([runfinch#246](https://github.com/vsiravar/finch-public/issues/246)) ([863c51e](863c51e)) * **deps:** Bump github.com/runfinch/common-tests from 0.1.1 to 0.2.0 ([runfinch#125](https://github.com/vsiravar/finch-public/issues/125)) ([1bac92a](1bac92a)) * **deps:** Bump github.com/runfinch/common-tests from 0.2.0 to 0.3.0 ([runfinch#151](https://github.com/vsiravar/finch-public/issues/151)) ([79df04e](79df04e)) * **deps:** Bump github.com/runfinch/common-tests from 0.5.0 to 0.6.0 ([runfinch#235](https://github.com/vsiravar/finch-public/issues/235)) ([4a33a2e](4a33a2e)) * **deps:** bump github.com/runfinch/common-tests from 0.6.1 to 0.6.2 ([runfinch#300](https://github.com/vsiravar/finch-public/issues/300)) ([dd626a0](dd626a0)) * **deps:** Bump github.com/runfinch/common-tests version from v0.1.0 to v0.1.1 ([runfinch#76](https://github.com/vsiravar/finch-public/issues/76)) ([fd22d4a](fd22d4a)) * **deps:** Bump github.com/runfinch/common-tests version from v0.3.0 to v0.3.1 ([runfinch#169](https://github.com/vsiravar/finch-public/issues/169)) ([16157fe](16157fe)) * **deps:** Bump github.com/spf13/afero from 1.9.2 to 1.9.3 ([#43](#43)) ([bf0ad84](bf0ad84)) * **deps:** Bump github.com/spf13/afero from 1.9.3 to 1.9.4 ([runfinch#241](https://github.com/vsiravar/finch-public/issues/241)) ([58f26e6](58f26e6)) * **deps:** bump github.com/spf13/afero from 1.9.4 to 1.9.5 ([runfinch#263](https://github.com/vsiravar/finch-public/issues/263)) ([a0e277f](a0e277f)) * **deps:** Bump github.com/stretchr/testify from 1.8.0 to 1.8.1 ([#44](#44)) ([31c6d70](31c6d70)) * **deps:** bump github.com/stretchr/testify from 1.8.1 to 1.8.2 ([runfinch#244](https://github.com/vsiravar/finch-public/issues/244)) ([984af70](984af70)) * **deps:** Bump github.com/xorcare/pointer from 1.2.1 to 1.2.2 ([#42](#42)) ([8e83137](8e83137)) * **deps:** Bump golang.org/x/crypto from 0.1.0 to 0.3.0 ([#49](#49)) ([89826cf](89826cf)) * **deps:** Bump golang.org/x/crypto from 0.3.0 to 0.4.0 ([runfinch#102](https://github.com/vsiravar/finch-public/issues/102)) ([d2778e3](d2778e3)) * **deps:** Bump golang.org/x/crypto from 0.4.0 to 0.5.0 ([runfinch#138](https://github.com/vsiravar/finch-public/issues/138)) ([8d06eec](8d06eec)) * **deps:** Bump golang.org/x/crypto from 0.4.0 to 0.5.0 ([runfinch#144](https://github.com/vsiravar/finch-public/issues/144)) ([603419a](603419a)) * **deps:** Bump golang.org/x/crypto from 0.5.0 to 0.6.0 ([runfinch#212](https://github.com/vsiravar/finch-public/issues/212)) ([e1a36cf](e1a36cf)) * **deps:** bump golang.org/x/crypto from 0.6.0 to 0.7.0 ([runfinch#264](https://github.com/vsiravar/finch-public/issues/264)) ([ec1c07f](ec1c07f)) * **deps:** Bump golang.org/x/tools from 0.2.0 to 0.3.0 ([#52](#52)) ([27c8f24](27c8f24)) * **deps:** Bump golang.org/x/tools from 0.3.0 to 0.4.0 ([runfinch#101](https://github.com/vsiravar/finch-public/issues/101)) ([b3c4df1](b3c4df1)) * **deps:** Bump golang.org/x/tools from 0.4.0 to 0.5.0 ([runfinch#139](https://github.com/vsiravar/finch-public/issues/139)) ([89194dc](89194dc)) * **deps:** Bump golang.org/x/tools from 0.5.0 to 0.6.0 ([runfinch#215](https://github.com/vsiravar/finch-public/issues/215)) ([decf250](decf250)) * **deps:** bump golang.org/x/tools from 0.6.0 to 0.7.0 ([runfinch#268](https://github.com/vsiravar/finch-public/issues/268)) ([8072e39](8072e39)) * **deps:** Bump k8s.io/apimachinery from 0.25.2 to 0.25.4 ([#51](#51)) ([8f15779](8f15779)) * **deps:** Bump k8s.io/apimachinery from 0.25.4 to 0.26.0 ([runfinch#115](https://github.com/vsiravar/finch-public/issues/115)) ([e9084a4](e9084a4)) * **deps:** Bump k8s.io/apimachinery from 0.26.0 to 0.26.1 ([runfinch#174](https://github.com/vsiravar/finch-public/issues/174)) ([829b0bc](829b0bc)) * **deps:** bump k8s.io/apimachinery from 0.26.1 to 0.26.2 ([runfinch#251](https://github.com/vsiravar/finch-public/issues/251)) ([4a7268e](4a7268e)) * **deps:** bump k8s.io/apimachinery from 0.26.2 to 0.26.3 ([runfinch#306](https://github.com/vsiravar/finch-public/issues/306)) ([fe392cb](fe392cb)) * **deps:** Bump lima version ([runfinch#141](https://github.com/vsiravar/finch-public/issues/141)) ([35da07d](35da07d)) * **deps:** Bump lima version ([runfinch#302](https://github.com/vsiravar/finch-public/issues/302)) ([0269743](0269743)) * **deps:** Bump lima version ([runfinch#75](https://github.com/vsiravar/finch-public/issues/75)) ([cfaa4f6](cfaa4f6)) * **deps:** Bump submodules ([runfinch#281](https://github.com/vsiravar/finch-public/issues/281)) ([d4fd1f6](d4fd1f6)) * **deps:** Bump submodules ([runfinch#304](https://github.com/vsiravar/finch-public/issues/304)) ([b38af9f](b38af9f)) * make finch-core a submodule instead of downloading archives ([runfinch#188](https://github.com/vsiravar/finch-public/issues/188)) ([b08f588](b08f588)) * update os image versions ([runfinch#255](https://github.com/vsiravar/finch-public/issues/255)) ([576765b](576765b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [0.6.0](v0.5.0...v0.6.0) (2023-03-20) ### ⚠ BREAKING CHANGES * persists nerdctl user data ([runfinch#182](https://github.com/vsiravar/finch-public/issues/182)) * changes persistent disk path to prevent collisions ### Features * add `finch cp` command ([runfinch#135](https://github.com/vsiravar/finch-public/issues/135)) ([5989361](5989361)) * add `finch vm status` command ([runfinch#83](https://github.com/vsiravar/finch-public/issues/83)) ([37d74d0](37d74d0)) * add config to support additional directories ([runfinch#128](https://github.com/vsiravar/finch-public/issues/128)) ([0ceb060](0ceb060)) * adds a --force flag to vm stop and remove ([runfinch#178](https://github.com/vsiravar/finch-public/issues/178)) ([d499a7d](d499a7d)) * Play with semver and revert ([#46](#46)) ([2299e1e](2299e1e)) * Print version with Client and Server ([runfinch#108](https://github.com/vsiravar/finch-public/issues/108)) ([7f7cdda](7f7cdda)) * saves containerd user data to a persistent disk ([runfinch#133](https://github.com/vsiravar/finch-public/issues/133)) ([fccb4f3](fccb4f3)) * Support special IP host-gateway in --add-host flag ([runfinch#216](https://github.com/vsiravar/finch-public/issues/216)) ([9a38c8e](9a38c8e)) ### Bug Fixes * changes persistent disk path to prevent collisions ([3eb66a2](3eb66a2)) * Configure Buildkit Namespace as Env Variable ([runfinch#129](https://github.com/vsiravar/finch-public/issues/129)) ([ffb90be](ffb90be)) * correctly handle local environment value pass-through ([runfinch#158](https://github.com/vsiravar/finch-public/issues/158)) ([e138f10](e138f10)) * error readable by using the right placeholder ([#39](#39)) ([8e5f38d](8e5f38d)) * fix the misleading log when applying invalid config ([runfinch#119](https://github.com/vsiravar/finch-public/issues/119)) ([b4f74c5](b4f74c5)) * ignore .ssh pub keys ([runfinch#109](https://github.com/vsiravar/finch-public/issues/109)) ([0b74597](0b74597)) * parse --add-host special ip with equal sign ([runfinch#229](https://github.com/vsiravar/finch-public/issues/229)) ([fb4b62b](fb4b62b)) * persists nerdctl user data ([runfinch#182](https://github.com/vsiravar/finch-public/issues/182)) ([59f372c](59f372c)) * persists network user data ([runfinch#211](https://github.com/vsiravar/finch-public/issues/211)) ([f6baf82](f6baf82)) * print debug logs after newline ([runfinch#273](https://github.com/vsiravar/finch-public/issues/273)) ([8faa7de](8faa7de)) * print debug logs when lima disk command fails ([runfinch#270](https://github.com/vsiravar/finch-public/issues/270)) ([78a3f50](78a3f50)) * switch from rootless containers to rootful containers ([runfinch#232](https://github.com/vsiravar/finch-public/issues/232)) ([ae43a07](ae43a07)) ### Build System or External Dependencies * clean up finch-core _output directory in clean target ([runfinch#290](https://github.com/vsiravar/finch-public/issues/290)) ([4684a95](4684a95)) * **deps:** bump finch-core to 0.1.1 ([runfinch#93](https://github.com/vsiravar/finch-public/issues/93)) ([3f3bce5](3f3bce5)) * **deps:** Bump github.com/containerd/containerd from 1.6.14 to 1.6.18 ([runfinch#223](https://github.com/vsiravar/finch-public/issues/223)) ([7480222](7480222)) * **deps:** Bump github.com/google/go-licenses from 1.5.0 to 1.6.0 ([runfinch#168](https://github.com/vsiravar/finch-public/issues/168)) ([bb5674c](bb5674c)) * **deps:** Bump github.com/lima-vm/lima from 0.12.0 to 0.13.0 ([#40](#40)) ([520cc7f](520cc7f)) * **deps:** Bump github.com/lima-vm/lima from 0.13.0 to 0.14.0 ([runfinch#113](https://github.com/vsiravar/finch-public/issues/113)) ([9b275bc](9b275bc)) * **deps:** Bump github.com/lima-vm/lima from 0.14.0 to 0.14.1 ([runfinch#120](https://github.com/vsiravar/finch-public/issues/120)) ([9dea794](9dea794)) * **deps:** Bump github.com/lima-vm/lima from 0.14.1 to 0.14.2 ([runfinch#130](https://github.com/vsiravar/finch-public/issues/130)) ([26b7b09](26b7b09)) * **deps:** bump github.com/lima-vm/lima from 0.14.2 to 0.15.0 ([runfinch#247](https://github.com/vsiravar/finch-public/issues/247)) ([007081e](007081e)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.5.0 to 2.5.1 ([#50](#50)) ([fa108fd](fa108fd)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.5.1 to 2.6.0 ([runfinch#114](https://github.com/vsiravar/finch-public/issues/114)) ([934521c](934521c)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.6.0 to 2.6.1 ([runfinch#121](https://github.com/vsiravar/finch-public/issues/121)) ([becbc44](becbc44)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.7.0 to 2.7.1 ([runfinch#193](https://github.com/vsiravar/finch-public/issues/193)) ([7aaa381](7aaa381)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.7.1 to 2.8.0 ([runfinch#200](https://github.com/vsiravar/finch-public/issues/200)) ([596ed33](596ed33)) * **deps:** Bump github.com/onsi/ginkgo/v2 from 2.8.0 to 2.8.3 ([runfinch#233](https://github.com/vsiravar/finch-public/issues/233)) ([1185372](1185372)) * **deps:** bump github.com/onsi/ginkgo/v2 from 2.8.3 to 2.8.4 ([runfinch#245](https://github.com/vsiravar/finch-public/issues/245)) ([5e64716](5e64716)) * **deps:** bump github.com/onsi/ginkgo/v2 from 2.8.4 to 2.9.0 ([runfinch#265](https://github.com/vsiravar/finch-public/issues/265)) ([7e2d49e](7e2d49e)) * **deps:** bump github.com/onsi/ginkgo/v2 from 2.9.0 to 2.9.1 ([runfinch#285](https://github.com/vsiravar/finch-public/issues/285)) ([d741a03](d741a03)) * **deps:** Bump github.com/onsi/gomega from 1.24.1 to 1.24.2 ([runfinch#122](https://github.com/vsiravar/finch-public/issues/122)) ([d8174ff](d8174ff)) * **deps:** Bump github.com/onsi/gomega from 1.24.2 to 1.25.0 ([runfinch#165](https://github.com/vsiravar/finch-public/issues/165)) ([e4b9e96](e4b9e96)) * **deps:** Bump github.com/onsi/gomega from 1.25.0 to 1.26.0 ([runfinch#183](https://github.com/vsiravar/finch-public/issues/183)) ([12661b7](12661b7)) * **deps:** Bump github.com/onsi/gomega from 1.26.0 to 1.27.1 ([runfinch#234](https://github.com/vsiravar/finch-public/issues/234)) ([cd43781](cd43781)) * **deps:** bump github.com/onsi/gomega from 1.27.1 to 1.27.2 ([runfinch#246](https://github.com/vsiravar/finch-public/issues/246)) ([863c51e](863c51e)) * **deps:** Bump github.com/runfinch/common-tests from 0.1.1 to 0.2.0 ([runfinch#125](https://github.com/vsiravar/finch-public/issues/125)) ([1bac92a](1bac92a)) * **deps:** Bump github.com/runfinch/common-tests from 0.2.0 to 0.3.0 ([runfinch#151](https://github.com/vsiravar/finch-public/issues/151)) ([79df04e](79df04e)) * **deps:** Bump github.com/runfinch/common-tests from 0.5.0 to 0.6.0 ([runfinch#235](https://github.com/vsiravar/finch-public/issues/235)) ([4a33a2e](4a33a2e)) * **deps:** bump github.com/runfinch/common-tests from 0.6.1 to 0.6.2 ([runfinch#300](https://github.com/vsiravar/finch-public/issues/300)) ([dd626a0](dd626a0)) * **deps:** Bump github.com/runfinch/common-tests version from v0.1.0 to v0.1.1 ([runfinch#76](https://github.com/vsiravar/finch-public/issues/76)) ([fd22d4a](fd22d4a)) * **deps:** Bump github.com/runfinch/common-tests version from v0.3.0 to v0.3.1 ([runfinch#169](https://github.com/vsiravar/finch-public/issues/169)) ([16157fe](16157fe)) * **deps:** Bump github.com/spf13/afero from 1.9.2 to 1.9.3 ([#43](#43)) ([bf0ad84](bf0ad84)) * **deps:** Bump github.com/spf13/afero from 1.9.3 to 1.9.4 ([runfinch#241](https://github.com/vsiravar/finch-public/issues/241)) ([58f26e6](58f26e6)) * **deps:** bump github.com/spf13/afero from 1.9.4 to 1.9.5 ([runfinch#263](https://github.com/vsiravar/finch-public/issues/263)) ([a0e277f](a0e277f)) * **deps:** Bump github.com/stretchr/testify from 1.8.0 to 1.8.1 ([#44](#44)) ([31c6d70](31c6d70)) * **deps:** bump github.com/stretchr/testify from 1.8.1 to 1.8.2 ([runfinch#244](https://github.com/vsiravar/finch-public/issues/244)) ([984af70](984af70)) * **deps:** Bump github.com/xorcare/pointer from 1.2.1 to 1.2.2 ([#42](#42)) ([8e83137](8e83137)) * **deps:** Bump golang.org/x/crypto from 0.1.0 to 0.3.0 ([#49](#49)) ([89826cf](89826cf)) * **deps:** Bump golang.org/x/crypto from 0.3.0 to 0.4.0 ([runfinch#102](https://github.com/vsiravar/finch-public/issues/102)) ([d2778e3](d2778e3)) * **deps:** Bump golang.org/x/crypto from 0.4.0 to 0.5.0 ([runfinch#138](https://github.com/vsiravar/finch-public/issues/138)) ([8d06eec](8d06eec)) * **deps:** Bump golang.org/x/crypto from 0.4.0 to 0.5.0 ([runfinch#144](https://github.com/vsiravar/finch-public/issues/144)) ([603419a](603419a)) * **deps:** Bump golang.org/x/crypto from 0.5.0 to 0.6.0 ([runfinch#212](https://github.com/vsiravar/finch-public/issues/212)) ([e1a36cf](e1a36cf)) * **deps:** bump golang.org/x/crypto from 0.6.0 to 0.7.0 ([runfinch#264](https://github.com/vsiravar/finch-public/issues/264)) ([ec1c07f](ec1c07f)) * **deps:** Bump golang.org/x/tools from 0.2.0 to 0.3.0 ([#52](#52)) ([27c8f24](27c8f24)) * **deps:** Bump golang.org/x/tools from 0.3.0 to 0.4.0 ([runfinch#101](https://github.com/vsiravar/finch-public/issues/101)) ([b3c4df1](b3c4df1)) * **deps:** Bump golang.org/x/tools from 0.4.0 to 0.5.0 ([runfinch#139](https://github.com/vsiravar/finch-public/issues/139)) ([89194dc](89194dc)) * **deps:** Bump golang.org/x/tools from 0.5.0 to 0.6.0 ([runfinch#215](https://github.com/vsiravar/finch-public/issues/215)) ([decf250](decf250)) * **deps:** bump golang.org/x/tools from 0.6.0 to 0.7.0 ([runfinch#268](https://github.com/vsiravar/finch-public/issues/268)) ([8072e39](8072e39)) * **deps:** Bump k8s.io/apimachinery from 0.25.2 to 0.25.4 ([#51](#51)) ([8f15779](8f15779)) * **deps:** Bump k8s.io/apimachinery from 0.25.4 to 0.26.0 ([runfinch#115](https://github.com/vsiravar/finch-public/issues/115)) ([e9084a4](e9084a4)) * **deps:** Bump k8s.io/apimachinery from 0.26.0 to 0.26.1 ([runfinch#174](https://github.com/vsiravar/finch-public/issues/174)) ([829b0bc](829b0bc)) * **deps:** bump k8s.io/apimachinery from 0.26.1 to 0.26.2 ([runfinch#251](https://github.com/vsiravar/finch-public/issues/251)) ([4a7268e](4a7268e)) * **deps:** bump k8s.io/apimachinery from 0.26.2 to 0.26.3 ([runfinch#306](https://github.com/vsiravar/finch-public/issues/306)) ([fe392cb](fe392cb)) * **deps:** Bump lima version ([runfinch#141](https://github.com/vsiravar/finch-public/issues/141)) ([35da07d](35da07d)) * **deps:** Bump lima version ([runfinch#302](https://github.com/vsiravar/finch-public/issues/302)) ([0269743](0269743)) * **deps:** Bump lima version ([runfinch#75](https://github.com/vsiravar/finch-public/issues/75)) ([cfaa4f6](cfaa4f6)) * **deps:** Bump submodules ([runfinch#281](https://github.com/vsiravar/finch-public/issues/281)) ([d4fd1f6](d4fd1f6)) * **deps:** Bump submodules ([runfinch#304](https://github.com/vsiravar/finch-public/issues/304)) ([b38af9f](b38af9f)) * make finch-core a submodule instead of downloading archives ([runfinch#188](https://github.com/vsiravar/finch-public/issues/188)) ([b08f588](b08f588)) * update os image versions ([runfinch#255](https://github.com/vsiravar/finch-public/issues/255)) ([576765b](576765b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The
-e
,--env
flag as well as values within an--env-file
may contain only a variable name with no "={VALUE}" portion. These entries provide a shorthand to say "pass the existing environment value of this variable into the container". Because of the VM boundary we need to extrapolate these values on the Finch side and pass them as discrete values into the Lima VM on the nerdctl command line. Also the file referenced by--env-file
may not be accessible inside the VM, so we translate each entry in the file into-e
entries on the command line rather than fail on the VM side, unable to locate the file being referenced.Signed-off-by: Phil Estes [email protected]
Issue #, if available: Fixes #35
License Acceptance
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.