Skip to content

Getting the code in /example to work. #53

@SunnysideAaron

Description

@SunnysideAaron

Trying out oto I ran into a few different issues getting generate to work on the example code. I'm leaving these notes here in case anyone else happens to find this.

I'm am on Windows 10 trying to get the code to run in docker using the golang:1.23.6-bookworm image (linux)

  1. Had to change the first line of generate.sh to find bash.

#!/bin/bash

  1. Had to make sure generate.sh had permissions

chmod +x ./generate.sh

  1. Had to convert all the CRLF line endings to LF line endings in generate.sh. This is probably because I checked out the repo on windows then copied it over for use by docker. The message in terminal when I tried to generate was ambiguous saying "cannot execute: required file not found"

The following should then work.

./generate.sh

or

go generate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions