ITRS-Group / cordial

Cordial comprises a set of interrelated programs, integrations, libraries and packages for Geneos, principally written in Go.
Other
7 stars 0 forks source link

Package List does not show Links if symlink contains '/' #201

Open itrs-dsobiepan opened 2 months ago

itrs-dsobiepan commented 2 months ago

Client discovered issues with links not appearing on running geneos package list command. This was because of a appended '/' forward slash in the symlink creation. From my response to them:

"I see that the symlink targets all have the ‘/’ at the end of their names. Which, as far as navigating in unix goes, isn’t an issue. But it looks like the tool isn’t a fan of it. I just tried to replicate that to see what would happen, and I get the same situation. From my test environment:"

image

"In my packages/gateway directory I created a new symlink called GA6.7 and pointed it to the directory 6.7.1/ I specifically included the ‘/’ in its creation. I now have two symlinks, one with the ‘/’ , and one without (active_prod). Then once I ran the package list gateway command, I found the lack-of Link in the 6.7.1 release, just like what you’re seeing.

Recreating that new symlink without ‘/’ resolved the issue: "

image

Solution: Edit your symlinks (like active_prod) to remove the extra ‘/’, then should see the Links correctly populating.

itrs-dsobiepan commented 2 months ago

As per Peter, this situation can happen given how Unix operates, and the solution above is simple to employ to correct the issue.