Skip to content

bugfix not working on Ubuntu 24.04#16

Open
ricky-moore wants to merge 1 commit intosanelson:mainfrom
ricky-moore:Bugfix/version-variable
Open

bugfix not working on Ubuntu 24.04#16
ricky-moore wants to merge 1 commit intosanelson:mainfrom
ricky-moore:Bugfix/version-variable

Conversation

@ricky-moore
Copy link

The downloaded linux version was giving 12:33PM ERR config file issue error="While parsing config: toml: invalid character at start of key: \x7f"

So then I tried to build locally and ran into a build problem that this seemed to fix

@sanelson
Copy link
Owner

sanelson commented Feb 8, 2025

Thanks for the pull request Rick! Looks like you found a grab bag of issues, ha!

So that version issue is my bad, I don't think I updated the docs when I switched from a single go file pim.go to a multiple go file project. If you run the old way with go run pim.go ... it doesn't pull in the new version.go file which defines the Version() function. Easy to fix, just run with a . dot vs specifying the single pim.go file.

For example:

go run . -subs "mysub"

Going forward this is how you'll want to run the program as I'm going to be making it more modular to support new features.

As to the toml parsing issue, somehow a delete control character snuck into your config file. If you run the following command, you'll probably see something like this, note the $? at the beginning of the line.

cat -A pim.toml
^?tenant = "00000000-0000-0000-0000-000000000000"$

Easy to fix in Linux, this one-liner should clean things up for you.

cat pim.toml | tr -d $'\x7f' > pim.toml.new && mv pim.toml.new pim.toml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants