That’s up to you to get sorted. Obviously, as for every ride, you should carry a spare inner-tube and the tools to repair a puncture. For more complex problems, there will be either a helpful rider that will assist, or you can see if you can get a taxi or supporters lift to the next bike shop on the route. They will do their best to get you running again and get you on your way.