embedded-consul icon indicating copy to clipboard operation
embedded-consul copied to clipboard

Supporting Apple Silicon

Open sabyasachi90 opened this issue 3 years ago • 3 comments

Current version of consul 1.8.x does not work on M1 mac. I have created the PR https://github.com/pszymczyk/embedded-consul/pull/117 which upgrades it to 1.11.2 that has support for Apple Silicone

sabyasachi90 avatar Feb 22 '22 10:02 sabyasachi90

It looks like PR #117 should have closed this. However, although the README now advises use of version 2.3.1, it appears that version is not available on Maven Central. @pszymczyk was a publish step missed somewhere?

I too am blocked by this issue on my shiny M1 Mac.

oliverlockwood avatar Mar 16 '22 15:03 oliverlockwood

Yeah, I know that new version is still missing in MC, I need to migrate project to new github pipelines.

You can always use builder method to override Consul version:

    ConsulStarterBuilder withConsulVersion(String consulVersion) {

If you'd like you can add manual to readme so other devs will know how to download custom consul version :)

pszymczyk avatar Mar 16 '22 15:03 pszymczyk

Thanks @pszymczyk. For the reference of others: I was using the JUnit5 ConsulExtension.

To specify the Consul version explicitly, I went from (annotation at test class level):

@ExtendWith(ConsulExtension.class)

to (within the test class):

    @RegisterExtension
    static ConsulExtension consulExtension = new ConsulExtension(ConsulStarterBuilder.consulStarter()
            .withConsulVersion("1.11.4").build());

oliverlockwood avatar Mar 18 '22 11:03 oliverlockwood