Actomaton / Actomaton

🎭 Swift async/await & Actor-powered effectful state-management framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unsafe flags were added and after that I cannot use Actomaton as a dependency

tiborkiss opened this issue · comments

Hi.

I played with Actomaton version 0.3.1 and I was happy with it.
Now I tried to upgrade to 0.6.0 and I get the following compilation error:
The package product 'ActomatonStore' cannot be used as a dependency of this target because it uses unsafe build flags.

The commit which introduced the change is this:
Add Sendable conformances, -warn-concurrency & -enable-actor-data-race-checks compiler options

To me this unsafe flags error seems confusing, like for the others.
If that unsafe flags are banned from the dependencies, what should we do? Is that absolutely necessary to add or there is a workaround setting into the project which depend on unsafe flagged packages?

I saw that in swiftui-hooks repo was the same issue, but they removed the unsafe flags.

Hi @tiborkiss 👋

Yes, there is a workaround that not specifying by git-tag but either by "branch name" or "git hash" will work.

See also: Question about "...contains unsafe build flags" in SPM - Development / Package Manager - Swift Forums

As current implementation heavily relies on Swift Concurrency checks for better safety,
I'm planning to keep its unsafeFlags as is until Swift 6 comes in place.

Thank you for the hint. Actually I tried 2 days ago, specifically to put the SHA instead of the tag. At that time didn't worked for me. Now I tried again and now it works. Perhaps some quirks, such as Reset Package Cache I forgot to do last time.
Luckily I tried again today.
Therefore I close this issue.

Added installation explanation in: