GithubHelp home page GithubHelp logo

Comments (2)

github-actions avatar github-actions commented on June 26, 2024

Hello. Thanks for opening an issue on Exercism 🙂

At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.

This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!

If you're interested in learning more about this auto-responder, please read this blog post.

from cli.

ccqpein avatar ccqpein commented on June 26, 2024

I make the change in my local

modified   workspace/workspace.go
@@ -123,11 +123,11 @@ func (ws Workspace) Exercises() ([]Exercise, error) {
 func (ws Workspace) ExerciseDir(s string) (string, error) {
 	if !strings.HasPrefix(s, ws.Dir) {
 		var err = fmt.Errorf("not in workspace")
-		if runtime.GOOS == "darwin" {
-			err = fmt.Errorf("%w: directory location may be case sensitive: workspace directory: %s, "+
-				"submit path: %s", err, ws.Dir, s)
+		if runtime.GOOS != "darwin" {
+			return "", err
+		} else if !strings.HasPrefix(strings.ToLower(s), strings.ToLower(ws.Dir)) {
+			return "", err
 		}
-		return "", err
 	}
 
 	path := s

And looks like it can handle both upper/lower case when I try to submit. (and the unit test failed ofc)

I am not sure if anywhere else use this method (I only find it referenced in cmd/submit.go.

If you guys think this change is making sense, I can give a PR to make this change.

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.