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

Commenting out lines to fix the bug of no such file or directory #2990

Closed
wants to merge 6 commits into from
Closed

Commenting out lines to fix the bug of no such file or directory #2990

wants to merge 6 commits into from

Conversation

Bharadwajshivam28
Copy link
Contributor

@Bharadwajshivam28 Bharadwajshivam28 commented Feb 8, 2024

What does this change

This fixes the Bug when we do Mage Install an error comes "no such file or directory"

What issue does it fix

fixes #2989

Notes for the reviewer

Please look into some points i raised in the issue comment section

Checklist

  • Did you write tests?
  • Did you write documentation?
  • Did you change porter.yaml or a storage document record? Update the corresponding schema file.
  • If this is your first pull request, please add your name to the bottom of our [Contributors][contributors] list. Thank you for making Porter better! 🙇‍♀️
    [contributors]: https://getporter.org/src/CONTRIBUTORS.md

magefile.go Outdated
@@ -679,7 +679,7 @@ func Install() {
// Removing the file first clears the cache so that we don't run into "zsh: killed MIXIN..."
// See https://stackoverflow.com/questions/67378106/mac-m1-cping-binary-over-another-results-in-crash
// See https://openradar.appspot.com/FB8914231
mgx.Must(os.Remove(filepath.Join(destDir, mixin+xplat.FileExt())))
//mgx.Must(os.Remove(filepath.Join(destDir, mixin+xplat.FileExt())))
Copy link
Member

Choose a reason for hiding this comment

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

This line was there for an issue on M1 Macs where there would be an error about the executable not being signed properly and wouldn't execute. Are you able to confirm you're not able to reproduce that error?
If so, you can just delete this line and all the comments addressing it :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @schristoff give me some time will confirm it and drop a message here

@Bharadwajshivam28
Copy link
Contributor Author

Bharadwajshivam28 commented Feb 8, 2024

Hey @schristoff I tested by removing lines 682-683 . It worked fine.. so we can remove both the lines

@kichristensen
Copy link
Contributor

kichristensen commented Feb 9, 2024

I hit a similar issue and the same today. Almost the same eror can happen on line 648 and 649, when Porter is not installed initially, was about to create a PR to fix when I saw this one

@schristoff
Copy link
Member

Hey @kichristensen thanks for letting us know, mind if I ask, are you on Mac and if so what architecture?

@kichristensen
Copy link
Contributor

@schristoff Unfortunately I'm not on Mac

@Bharadwajshivam28
Copy link
Contributor Author

@schristoff Unfortunately I'm not on Mac

I faced the same issue on Linux(Manjaro) while setting it up... but commenting those lines fixes it

Bharadwajshivam28 and others added 6 commits February 13, 2024 07:27
Signed-off-by: shivam <shivambharadwaj822@gmail.com>
Signed-off-by: Shivam <shivambharadwaj822@gmail.com>
Signed-off-by: shivam <shivambharadwaj822@gmail.com>
Signed-off-by: Shivam <shivambharadwaj822@gmail.com>
Signed-off-by: shivam <shivambharadwaj822@gmail.com>
Signed-off-by: Shivam <shivambharadwaj822@gmail.com>
Signed-off-by: shivam <shivambharadwaj822@gmail.com>
* Create user-friendly error message on missing porter.yaml

Improve the error message when porter.yaml is missing during build

Signed-off-by: Kim Christensen <kimworking@gmail.com>

---------

Signed-off-by: Kim Christensen <kimworking@gmail.com>
Signed-off-by: shivam <shivambharadwaj822@gmail.com>
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.

bug: Mage Install runs into "no such file or directory"
3 participants