Skip to content

Conversation

@discollizard
Copy link
Contributor

Good evening. This PR concerns this issue: #2370

The solution I found to avoid conflict between the generated executable file and the various folders and files on the drogon_ctl generated project root folder was to add a _<unix_timestamp> to it.

@an-tao
Copy link
Member

an-tao commented Aug 20, 2025

@discollizard thanks so much for your patch, I prefer changing the folder name rather than the executable name, what do u think?

@discollizard
Copy link
Contributor Author

I changed the executable name because by changing it, it should never conflict with any of the folders or files; if I changed the name of the test folder only, the conflict would still appear if the project was named something else on the folder (I tested by naming a project "views" and the error still ocurred).

I'm still open to suggestions, though 🙏

@rbugajewski
Copy link
Collaborator

I don’t fully understand your use case here. Could you explain why it is worth adding additional complexity for this (slightly confusing) function? At this point, I’m not sure if it’s more of a workstation configuration problem than a Drogon issue.

@discollizard
Copy link
Contributor Author

I don’t fully understand your use case here. Could you explain why it is worth adding additional complexity for this (slightly confusing) function? At this point, I’m not sure if it’s more of a workstation configuration problem than a Drogon issue.

It's a minor developer experience improvement, and it is quite a niche edge case, I admit. Because it was such a simple fix I decided to do it myself; and this problem may have many solutions, I just implemented the one that seemed the simplest to me.

As for the workstation configuration point, I've tested so far in a Fedora 42 machine and a Mint 22 one, and the problem still persists.

The logs below are from my attempt with the "views" project name:

image

Translation:

[ 25%] Building CXX object CMakeFiles/views.dir/main.cc.o
[ 50%] Linking CXX executable views
/usr/bin/ld: cannot open output file views: Is a directory
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/views.dir/build.make:108: views] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/views.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

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.

3 participants