There is a lot of talk about how Boris Johnson could potentially avoid adhering to the law. However, I think that there still is a possibility for a solution with the EU. It has been discussed in this thread, and I think it is potentially the one that might work even if the DUP doesn't like it. that solution is the border in the Irish sea. Northern Ireland will continue to abide by EU rules, therefore, there would be no hard border in Ireland.