-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
add pass-station #3050
add pass-station #3050
Conversation
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.
Hi, I'm getting this error while testing:
┌─[ ArchDevel /tmp/tmp.NPP1nyApMq ]
└──╼ $ ba-dev -p pass-station-v1.1.0.r0.g2ba48f6-1-any.pkg.tar.zst -e "pass-station list"
loading packages...
warning: pass-station-v1.1.0.r0.g2ba48f6-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) pass-station-v1.1.0.r0.g2ba48f6-1
Total Installed Size: 0.10 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [####################################################################] 100%
(1/1) checking package integrity [####################################################################] 100%
(1/1) loading package files [####################################################################] 100%
(1/1) checking for file conflicts [####################################################################] 100%
(1/1) checking available disk space [####################################################################] 100%
:: Processing package changes...
(1/1) reinstalling pass-station [####################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
Package pass-station-v1.1.0.r0.g2ba48f6-1-any.pkg.tar.zst installed correctly! Testing it now...
Traceback (most recent call last):
5: from /usr/bin/pass-station:23:in `<main>'
4: from /usr/bin/pass-station:23:in `load'
3: from /usr/lib/ruby/gems/2.7.0/gems/pass-station-1.1.0/bin/pass-station:67:in `<top (required)>'
2: from /usr/lib/ruby/gems/2.7.0/gems/pass-station-1.1.0/bin/pass-station:67:in `new'
1: from /usr/lib/ruby/gems/2.7.0/gems/pass-station-1.1.0/lib/pass_station.rb:34:in `initialize'
/usr/lib/ruby/gems/2.7.0/gems/pass-station-1.1.0/lib/pass_station.rb:45:in `database_exists?': Database does not exist: data/DefaultCreds-Cheat-Sheet.csv (RuntimeError)
Maybe a postinstall is required to setup the database?
Regards, Ed.
The database is in the gem this is a path issue, it works only from the root install dir:
I have to fix this method: # Check if the password database exists
# @return [Boolean] +true+ if the file exists
def database_exists?
exists = File.file?(@database_path)
raise "Database does not exist: #{@database_path}" unless exists
exists
end It's 100% bad code from me, nothing to change on the PKGBUILD. |
Hey @noraj, thank you but I'm now getting this error while executing
Can you please check? |
I'm not really sure what is causing the encoding issue.
So this time it does not come from the code but encoding inside the PKGBUILD. And I don't see any specific character that could cause an issue at https://github.com/sec-it/pass-station/blob/master/data/DefaultCreds-Cheat-Sheet.csv#L2934 |
On my machine
But there is no encoding define on the ba-dev build environment, not even Try to prefix with an UTF8 env var and it goes well and smooth.
|
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.
Hey @noraj, I've tested and it works fine, thank you.
No description provided.