Skip to content
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

Multiple fixes #156

Merged
merged 4 commits into from
Jan 11, 2020
Merged

Multiple fixes #156

merged 4 commits into from
Jan 11, 2020

Conversation

genotrance
Copy link
Collaborator

Fix #147 - workaround rather since we don't have root cause yet
Fix #151 - correct binary names in CI
Add testament to list of proxies

Copy link
Owner

@dom96 dom96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment, otherwise looks good.

if kind == pcFile:
# Set to 755 = rwxrw-rw- in octal
# = 493 in decimal
discard chmod(path, 493)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need posix for this, can you just use the os module?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Owner

@dom96 dom96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment on lines +77 to +88
when defined(posix):
proc setPermissions() =
## Assumes that CWD contains the compiler
let binDir = getCurrentDir() / "bin"
for kind, path in walkDir(binDir):
if kind == pcFile:
setFilePermissions(path,
{fpUserRead, fpUserWrite, fpUserExec,
fpGroupRead, fpGroupExec,
fpOthersRead, fpOthersExec}
)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another thing that would be nice would be a debug output to say that these file permission changes are taking place. But I'll leave that to another PR if you agree that it's a good idea.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To do that, we will have to first check the extracted permissions. Do you want to add that additional code?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh? Just show the message always, even if the permissions aren't being changed. It'll be hidden anyway most of the time.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in PR #158.

@dom96 dom96 merged commit a554364 into dom96:master Jan 11, 2020
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.

CI does not name binaries correctly OS error: Permission denied at version 0.5
2 participants