-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Build the package along with the data file for local use #2118
Conversation
Don't merge yet, I'm double-checking this. |
This looks like a good fix and should be applied, but I have some thoughts related to this... What's the point of --local for packaged builds? --local is much needed for testing and such when dealing with the source, but is there any real use for it when packaged, where the user isn't likely to change it anyways? (merge should happen either way if functional --- just related) |
Ready, everything seems fine now. The dynamic search mechanism in the package build wasn't working well for some reason, so it's better to keep the explicit definition. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix works on my end.
Good point. I also thought about that when I was analyzing it. I don't see a use for the average user. It's just a feature for testing. Maybe we should mention this in the documentation? |
I was planning to add some checks soon where if sherlock is ran on ${platform} certain options would change or be excluded. Just due to how things are packaged and such. I could create an Issue to dynamically remove the option when someone gets to it, rather than adding to docu (issue to track) |
I'm not sure if this is necessary for the Since |
hm. what if we set --local to use ~/.config/sherlock/data.json either instead of packaged data.json or before packaged data.json that would allow packaged users to still take advantage of the option without having to detect what version they were on only issue would be adapting this for windows users, since I am not one and don't know those conventions. appdata, maybe? |
Thank you @matheusfelipeog for noticing and fixing this!
@ppfeister, |
When packaged, however, that source directory is pretty buried. Users who want to load their own manifest may be better suited by using When packaged as an rpm, for instance, the data.json file resides at A better solution in my mind would be to scrap the --local flag, and make data.json the default argument for --json when no argument is provided. This would reduce the number of flags needed without losing any functionality, simplifying sherlock. Also, when packaged, I don't see this inclusion being very valuable in such an odd spot. In my mind, it would make more sense to drop data.json when packaged, and have the default location for --json become (only when packaged) |
This is very true. I for some reason through that |
@sdushantha Although both (
|
When testing changes to their local json, they would just run |
hotfix to #2116 (comment)
ref: #2116