Comments (6)
Hi, odd bug at the moement - where the relative path for the data is not being set correct after the gem install. It works if I clone it and run it locally but I will have our guys look at it and see if we can resolve the bug which I think is in the .gemspec file or in the 'requires' for the data loading
from heimdall_tools.
We should take a look at the way we are loading our files from lib/
Statements like this: RESOURCE_DIR = Pathname.new(__FILE__).join('../../data')
using relative paths can be dangerous and may not always grab the correct file since they have to do with invocation location.
from heimdall_tools.
Fixed in #42
from heimdall_tools.
Hey @Bialogs if am not mistaken RESOURCE_DIR = Pathname.new(__FILE__).join('../../data')
goes by relative location of the source code ...not the invocation location... and the gem does run from any location with this code...
if you still think it should be changed what do you think about
RESOURCE_DIR = "#{File.dirname __dir__}/data"
?
from heimdall_tools.
__FILE__
should be the relative location to the particular file from the invocation location so you'd need to do a File.expand_path(__FILE__)
to get the absolute location to where the gem is installed and then use that for the RESOURCE_DIR
.
Not sure if converting to a Pathname
object will do the same behavior as File#expand_path
.
Since we are setting a RESOURCE_DIR
it might make sense to include that as a constant in the same pattern as version.rb
.
from heimdall_tools.
this issue fixed by #42;
Pathname.new method revolves the absolute path and hence works as a gem
from heimdall_tools.
Related Issues (20)
- Heimdall_tools image issue with executing as gitlab-runners. HOT 2
- Add fields to Nessus STIG compliance mapper HOT 6
- In sonarqube mapper code, remove .freeze method off `TAG_DATA` introduced by rubocop autocorrect HOT 1
- Map Nessus Warnings and Errors properly
- Standard Format For Jfrog to Heimdall Tool HOT 1
- Review, assign and label open issues
- xccdf_results_mapper undefined method `match' HOT 2
- Veracode Converter to HDF HOT 1
- Heimdall_Tools is deprecated
- Map 'Policy Compliance' entries for nessus_mapper
- nessus_mapper CCI to NIST Mapping
- JFrog XRay scan Converter HOT 4
- Dbprotect mapper HOT 2
- Resolve CWE mapping error
- Include the jfrog's "more details" information in the details tab
- Error running `nessus_mapper` against exported scan file from tenable.io HOT 3
- Re-add verbose flag if/when user requests additional visiblity HOT 1
- Convert SCC XCCDF XML to a Heimdall readable format
- Add '--input / -i' as options and clean up documentation HOT 1
- Clarify Nessus scope HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heimdall_tools.