/bin/bash: line 1: ./out: Permission denied
I'm trying to deploy a GO App, but I keep getting: /bin/bash: line 1: ./out: Permission denied.
27 Replies
Project ID:
1d5edfc1-e62a-4374-b521-39406854b371
1d5edfc1-e62a-4374-b521-39406854b371
are you building with nixpacks or your own dockerfile?
nixpacks
never had issues in the past though.
have you set any build or start commands in the settings?
nop
I haven't brought any changes to the service's settings for the past 6 months, and it used to be working just fine.
Pushed yesterday without any issues.
could you share your repo if possible?
Let me try one more thing first.
because the nixpacks repo hasn't had any changes in the last 3 weeks
Okay, good to know. Probably something on my end then. So I'll review & test some more.
Thanks a lot @Brody
no problem, let me know when you figure it out please
I think I might've figured it!
Had the change the package name which was modified.
Yup, things seems correct now.
Thank you.
used to be main? what did you change it to?
my project's name.
Solution
but brought it back to main and everything works
i want to understand what happened, changing the package name should not effect anything
i would super appreciate if maybe you could give me a minimal reproduceable repo that will result in the same issue?
I had change:
package main
to package infinivents
... broked the deployment.
Although my own project didn't have any package main
.. which was probably the issuewhat name did you have in your go.mod file
module infinivents-event-state-manager
that?what do you mean by this? go files need to have
package <some name>
or else go's linter freaks out, not to mention it wouldnt build without thatNo it did have a package name
infinivents
but not main
That's what I mentah gotcha
was the file named main.go though?
yes
yeah thats not a valid setup
I see. 🙂 My bad.
so theres not anything nixpacks can do about that
thank you for your time!
Thank YOU 🙂