cookiecutter-rimworld-mod-development icon indicating copy to clipboard operation
cookiecutter-rimworld-mod-development copied to clipboard

Project and Assembly GUIDs should be unique

Open lilwhitemouse opened this issue 5 years ago • 3 comments

Problem

The GUID for an assembly should, in theory, be a unique way to identify the .dll. However, all cookiecutter projects will have the same GUID. There are, as it happens, a few people who look for specific GUIDs when doing magicTM.

In addition, the project GUIDs should apparently be unique (which would prevent problems when moving projects from solution to solution? Most of us would never notice)

Maybe Do This

There's a command-line option to generate mostly-unique GUIDs in Linux, and there are web options, but I don't know about Windows, and I don't even know if cookiecutter can run commands. Maybe there is a library already in json? I haven't looked any further into this yet.

At a worst-case scenario, the user could be given a website suggestion and prompted to enter GUIDs?

But perhaps more research is required.

lilwhitemouse avatar Apr 28 '20 07:04 lilwhitemouse

Interesting points. I worry about adding more complexity to the bootstrapping process as it’s targeted for beginners, but possibly a hash of the other inputs could be a worthwhile solution. I’ll investigate further.

n-fisher avatar Jun 10 '20 01:06 n-fisher

Can't you just use the uuid library in python to do this?

RobRoseKnows avatar Aug 24 '20 23:08 RobRoseKnows

That's a great suggestion. I'm less familiar with Python so I hadn't thought about that library.

n-fisher avatar Aug 26 '20 00:08 n-fisher