-
Notifications
You must be signed in to change notification settings - Fork 18
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
[BUG] Relative includes cannot be used for sls
requisites
#41
Comments
@noelmcloughlin Actually, there's an additional problem here, golang:
pkg:
use_upstream_repo: false It was removed here in a recent commit: 8a9b380#diff-e697bcf6a8534d9757121c1934dd6148L8. |
In attempting to fix this, also hitting another bug which seems to be introduced recently: local:
Data failed to compile:
----------
Rendering SLS 'base:golang.config.environ' failed: Jinja variable 'dict object' has no attribute 'path' Only available golang-formula/golang/map.jinja Line 66 in e926a71
UPDATE: Workaround is to set |
Even with the correct ID: golang-package-install-pkg-installed
Function: pkg.installed
Name: golang
Result: False
Comment: The following requisites were not found:
require:
sls: golang.package.repo.install Because |
I've got a fix in place for this, all states passing, just the tests for |
## [0.7.2](v0.7.1...v0.7.2) (2020-06-05) ### Bug Fixes * **defaults:** ensure `path` is set (for package-based installation) ([e7e088b](e7e088b)) * **pkg:** use correct package name per `osfamily` ([2677e84](2677e84)) * **repo:** fix relative includes cannot be used for `sls` requisites ([6049382](6049382)), closes [#41](#41) ### Continuous Integration * **kitchen+travis+inspec:** add `package` suite ([aba6e4c](aba6e4c))
🎉 This issue has been resolved in version 0.7.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Your setup
Formula commit hash / release tag
Latest: f4cdc94.
Versions reports (master & minion)
(Travis).
Pillar / config used
https://github.com/saltstack-formulas/packages-formula/blob/7495961d5219306e8d3d5e021acc9e9230eb6eba/test/salt/pillar/ubuntu.sls#L4-L9
Bug details
Describe the bug
https://travis-ci.org/github/myii/packages-formula/jobs/694412318#L4276-L4282
Steps to reproduce the bug
(Travis run for the
packages-formula
).Expected behaviour
No error.
Attempts to fix the bug
@noelmcloughlin This is based on an upstream bug in Salt as discussed here: saltstack-formulas/template-formula#48 (comment).
This is the offending line that needs to be fixed:
golang-formula/golang/package/install.sls
Line 5 in f4cdc94
The solution is the same as is used in the
template-formula
, i.e. probably:{%- set sls_repo_install = tplroot ~ '.package.repo.install' %}
Furthermore, there really needs to be a test suite for
package
-based installations -- all arearchive
-based at the moment.Additional context
The text was updated successfully, but these errors were encountered: