Hello and thanks for your question. My name is XXXXX XXXXX X will do all I can to help.
First, do you see where the latch closes against the striker?
Take the hook from the latch and close it manual, as it would if the trunk was closed. Does the latch hold ? or is the latch definitely defective? Trying to determine if it's out of adjustment or if the latch is definitely bad.